Skip to content

Commit

Permalink
fix #8: chown for ~/.config/systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
dpurgin committed Dec 23, 2014
1 parent 0fe5814 commit a0ddbd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rpm/harbour-callrecorder.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name: harbour-callrecorder
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Call Recorder for SailfishOS
Version: 0.3
Release: 5
Release: 6
Group: Applications/Communications
License: GPLv3
URL: https://github.com/dpurgin/harbour-callrecorder
Expand Down Expand Up @@ -71,15 +71,20 @@ rm -rf %{buildroot}
echo "Reloading systemd..."
systemctl-user daemon-reload



if [ $1 = 1 ]; then
echo "Enabling service"
mkdir -p /home/nemo/.config/systemd/user/user-session.target.wants
chown --recursive nemo:nemo /home/nemo/.config/systemd

systemctl-user enable harbour-callrecorderd

echo "Starting service..."
systemctl-user start harbour-callrecorderd
else
echo "Starting service..."
chown --recursive nemo:nemo /home/nemo/.config/systemd
systemctl-user try-restart harbour-callrecorderd
fi
# << install post
Expand Down

0 comments on commit a0ddbd4

Please sign in to comment.