Skip to content

Commit

Permalink
Install Edomi stop script into /usr/local/bin/ to prevent missing the…
Browse files Browse the repository at this point in the history
… script after installing a backup from a native Edomi installation, where this script is not existing
  • Loading branch information
starwarsfan committed Mar 8, 2023
1 parent cc786df commit 32b92ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setupEdomi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,13 @@ sed -i \
-e '/postfix/d' \
-e '/\[Service\]/a echo "Restart=on-success" >> /etc/systemd/system/edomi.service\necho "SuccessExitStatus=SIGHUP" >> /etc/systemd/system/edomi.service' \
-e '/Type=simple/a echo "ExecStartPre=-sed -i -e \\"/ntpd/d\\" /usr/local/edomi/main/start.sh" >> /etc/systemd/system/edomi.service\necho "ExecStartPre=-sed -i -e \\"s@pkill -9 php.*@pkill -9 -x php@g\\" /usr/local/edomi/main/start.sh" >> /etc/systemd/system/edomi.service\necho "ExecStartPre=-touch /dev/vcsa" >> /etc/systemd/system/edomi.service' \
-e '/ExecStart/a echo "ExecStop=/bin/sh /usr/local/edomi/main/stop.sh" >> /etc/systemd/system/edomi.service' \
-e '/ExecStart/a echo "ExecStop=/bin/sh /usr/local/bin/stop_edomi.sh" >> /etc/systemd/system/edomi.service' \
-e 's/default\.target/multi-user\.target/g' \
-e 's/ntpd/chronyd/g' \
install.sh

cp ${ownLocation}/scripts/stop.sh /usr/local/edomi/main/stop.sh
chmod +x /usr/local/edomi/main/stop.sh
cp ${ownLocation}/scripts/stop.sh /usr/local/bin/stop_edomi.sh
chmod +x /usr/local/bin/stop_edomi.sh

# Start Edomi installation, choose "2" as install version and accept to install on unknown system
{
Expand Down

0 comments on commit 32b92ad

Please sign in to comment.