update symlinks too, follow up to ed21517
This commit is contained in:
parent
437c19f64c
commit
542fe8a860
1 changed files with 7 additions and 5 deletions
12
ctl
12
ctl
|
@ -41,11 +41,13 @@ if [ "$action" = "install" ]; then
|
||||||
BASE=`pwd`
|
BASE=`pwd`
|
||||||
if [ -x /bin/systemctl ]; then
|
if [ -x /bin/systemctl ]; then
|
||||||
if [ -d /etc/systemd/system/ ]; then
|
if [ -d /etc/systemd/system/ ]; then
|
||||||
rm -f /lib/systemd/system/pandora.service \
|
for service in $SERVICES; do
|
||||||
/lib/systemd/system/pandora-cron.service \
|
if [ -e /lib/systemd/system/${service}.service ]; then
|
||||||
/lib/systemd/system/pandora-encoding.service \
|
rm -f /lib/systemd/system/${service}.service \
|
||||||
/lib/systemd/system/pandora-tasks.service \
|
/etc/systemd/system/multi-user.target.wants/${service}.service
|
||||||
/lib/systemd/system/pandora-websocketd.service
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
cp $BASE/etc/systemd/system/*.service /etc/systemd/system/
|
cp $BASE/etc/systemd/system/*.service /etc/systemd/system/
|
||||||
cp $BASE/etc/tmpfiles.d/pandora.conf /etc/tmpfiles.d/
|
cp $BASE/etc/tmpfiles.d/pandora.conf /etc/tmpfiles.d/
|
||||||
systemd-tmpfiles --create /etc/tmpfiles.d/pandora.conf >/dev/null || true
|
systemd-tmpfiles --create /etc/tmpfiles.d/pandora.conf >/dev/null || true
|
||||||
|
|
Loading…
Reference in a new issue