|
|
@ -41,8 +41,9 @@ msg_ok "MongoDB 4.4 Installed" |
|
|
|
msg_info "Installing Petio" |
|
|
|
msg_info "Installing Petio" |
|
|
|
useradd -M --shell=/bin/false petio |
|
|
|
useradd -M --shell=/bin/false petio |
|
|
|
mkdir /opt/Petio |
|
|
|
mkdir /opt/Petio |
|
|
|
wget https://petio.tv/releases/latest -O petio-latest.zip |
|
|
|
wget -q https://petio.tv/releases/latest -O petio-latest.zip |
|
|
|
unzip petio-latest.zip -d /opt/Petio |
|
|
|
$STD unzip -q petio-latest.zip -d /opt/Petio |
|
|
|
|
|
|
|
rm -rf petio-latest.zip |
|
|
|
chown -R petio:petio /opt/Petio |
|
|
|
chown -R petio:petio /opt/Petio |
|
|
|
msg_ok "Installed Petio" |
|
|
|
msg_ok "Installed Petio" |
|
|
|
|
|
|
|
|
|
|
@ -60,8 +61,6 @@ RestartSec=1 |
|
|
|
ExecStart=/opt/Petio/bin/petio-linux |
|
|
|
ExecStart=/opt/Petio/bin/petio-linux |
|
|
|
User=petio |
|
|
|
User=petio |
|
|
|
|
|
|
|
|
|
|
|
[Install] |
|
|
|
|
|
|
|
WantedBy=multi-user.target |
|
|
|
|
|
|
|
EOF |
|
|
|
EOF |
|
|
|
systemctl enable -q --now petio.service |
|
|
|
systemctl enable -q --now petio.service |
|
|
|
msg_ok "Created Service" |
|
|
|
msg_ok "Created Service" |
|
|
|