mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-19 12:56:01 +00:00
Compare commits
2 Commits
dafe17ac95
...
9c475a0208
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c475a0208 | ||
|
|
72d70d7842 |
@@ -58,8 +58,8 @@ if [[ ! -d /opt/actualbudget ]]; then msg_error "No ${APP} Installation Found!";
|
|||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
systemctl stop actualbudget.service
|
systemctl stop actualbudget.service
|
||||||
cd /opt/actualbudget
|
cd /opt/actualbudget
|
||||||
git pull
|
git pull &>/dev/null
|
||||||
yarn install
|
yarn install &>/dev/null
|
||||||
systemctl start actualbudget.service
|
systemctl start actualbudget.service
|
||||||
msg_ok "Successfully Updated ${APP}"
|
msg_ok "Successfully Updated ${APP}"
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -51,15 +51,18 @@ msg_info "Creating Service"
|
|||||||
cat <<EOF >/etc/systemd/system/petio.service
|
cat <<EOF >/etc/systemd/system/petio.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Petio a content request system
|
Description=Petio a content request system
|
||||||
After=network.target
|
After=network.target mongod.service
|
||||||
StartLimitIntervalSec=0
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
User=petio
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=1
|
RestartSec=1
|
||||||
ExecStart=/opt/Petio/bin/petio-linux
|
ExecStart=/opt/Petio/bin/petio-linux
|
||||||
User=petio
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
systemctl enable -q --now petio.service
|
systemctl enable -q --now petio.service
|
||||||
|
|||||||
Reference in New Issue
Block a user