wip
This commit is contained in:
parent
0f3d3e82f5
commit
b61a3db611
1 changed files with 5 additions and 10 deletions
|
@ -31,15 +31,10 @@ if [ ! -f "${CONF_FILE}" ]; then
|
|||
cp -v "${CONF_FILE_SAMPLE}" "${CONF_FILE}"
|
||||
fi
|
||||
|
||||
if systemctl is-active "${APP_NAME}.service" &>/dev/null ;then
|
||||
echo "server started"
|
||||
else
|
||||
# enable and start service
|
||||
systemctl daemon-reload
|
||||
rm -rf /etc/systemd/system/casaos.service # remove old service file
|
||||
|
||||
echo "Enabling service..."
|
||||
systemctl enable --force --no-ask-password "${APP_NAME}.service"
|
||||
systemctl daemon-reload
|
||||
|
||||
#echo "Starting service..."
|
||||
#systemctl start --force --no-ask-password "${APP_NAME}.service"
|
||||
fi
|
||||
# enable service (without starting)
|
||||
echo "Enabling service..."
|
||||
systemctl enable --force --no-ask-password "${APP_NAME}.service"
|
||||
|
|
Loading…
Add table
Reference in a new issue