...
 
Commits (2)
...@@ -385,20 +385,24 @@ shift ...@@ -385,20 +385,24 @@ shift
done done
if [ "$REMOVE_DAEMON" ]; then if [ "$REMOVE_DAEMON" ]; then
if [ -d "/etc/$APP_NAME/$REMOVE_DAEMON" ]; then if [ -f "/etc/systemd/system/${REMOVE_DAEMON}.service" ]; then
systemctl stop "${REMOVE_DAEMON}.service" systemctl stop "${REMOVE_DAEMON}.service"
systemctl stop "${REMOVE_DAEMON}.timer"
systemctl disable "${REMOVE_DAEMON}.service" systemctl disable "${REMOVE_DAEMON}.service"
systemctl disable "${REMOVE_DAEMON}.timer"
rm "/etc/systemd/system/${REMOVE_DAEMON}.service" rm "/etc/systemd/system/${REMOVE_DAEMON}.service"
fi
if [ -f "/etc/systemd/system/${REMOVE_DAEMON}.timer" ]; then
systemctl stop "${REMOVE_DAEMON}.timer"
systemctl disable "${REMOVE_DAEMON}.timer"
rm "/etc/systemd/system/${REMOVE_DAEMON}.timer" rm "/etc/systemd/system/${REMOVE_DAEMON}.timer"
fi
if [ -d "/etc/$APP_NAME/$REMOVE_DAEMON" ]; then
rm -rf "/etc/${APP_NAME:?}/$REMOVE_DAEMON" rm -rf "/etc/${APP_NAME:?}/$REMOVE_DAEMON"
if [ -d "/etc/${APP_NAME}/${REMOVE_DAEMON}-build" ]; then fi
rm -rf "/etc/${APP_NAME}/${REMOVE_DAEMON}-build" if [ -d "/etc/${APP_NAME}/${REMOVE_DAEMON}-build" ]; then
fi rm -rf "/etc/${APP_NAME}/${REMOVE_DAEMON}-build"
if [ -f "/etc/${APP_NAME}/${REMOVE_DAEMON}_build.log" ]; then fi
rm "/etc/${APP_NAME}/${REMOVE_DAEMON}_build.log" if [ -f "/etc/${APP_NAME}/${REMOVE_DAEMON}_build.log" ]; then
fi rm "/etc/${APP_NAME}/${REMOVE_DAEMON}_build.log"
fi fi
exit 0 exit 0
fi fi
......