diff --git a/ct/planka.sh b/ct/planka.sh index 6c3b05316..8caa56cb4 100644 --- a/ct/planka.sh +++ b/ct/planka.sh @@ -80,6 +80,8 @@ function update_script() { msg_ok "Migrated Database" msg_info "Starting Service" + sed -i 's|ExecStart=/usr/bin/npm start --prod$|ExecStart=/usr/bin/npm start --production|' /etc/systemd/system/planka.service + systemctl daemon-reload systemctl start planka msg_ok "Started Service" msg_ok "Updated successfully!" diff --git a/install/planka-install.sh b/install/planka-install.sh index 0db31f12a..f6fdb2fbb 100644 --- a/install/planka-install.sh +++ b/install/planka-install.sh @@ -70,7 +70,7 @@ After=network.target [Service] WorkingDirectory=/opt/planka -ExecStart=/usr/bin/npm start --prod +ExecStart=/usr/bin/npm start --production Restart=always [Install]