mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-09-17 17:15:16 +00:00
wip
This commit is contained in:
parent
0f3d3e82f5
commit
b61a3db611
@ -31,15 +31,10 @@ if [ ! -f "${CONF_FILE}" ]; then
|
|||||||
cp -v "${CONF_FILE_SAMPLE}" "${CONF_FILE}"
|
cp -v "${CONF_FILE_SAMPLE}" "${CONF_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if systemctl is-active "${APP_NAME}.service" &>/dev/null ;then
|
rm -rf /etc/systemd/system/casaos.service # remove old service file
|
||||||
echo "server started"
|
|
||||||
else
|
|
||||||
# enable and start service
|
|
||||||
systemctl daemon-reload
|
|
||||||
|
|
||||||
echo "Enabling service..."
|
systemctl daemon-reload
|
||||||
systemctl enable --force --no-ask-password "${APP_NAME}.service"
|
|
||||||
|
|
||||||
#echo "Starting service..."
|
# enable service (without starting)
|
||||||
#systemctl start --force --no-ask-password "${APP_NAME}.service"
|
echo "Enabling service..."
|
||||||
fi
|
systemctl enable --force --no-ask-password "${APP_NAME}.service"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user