Update petio-install.sh

remove .zip after unzip. make script "silent"
This commit is contained in:
Sayed Ali Alawi 2024-06-06 17:21:25 +03:00 committed by GitHub
parent a9aaad1aa9
commit 3135ca60cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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