fix permissions
This commit is contained in:
parent
2272827f1a
commit
3b306f8c77
@ -49,6 +49,7 @@ function update_script() {
|
|||||||
cd /opt/"${APPLICATION}"/frontend/src
|
cd /opt/"${APPLICATION}"/frontend/src
|
||||||
$STD yarn install
|
$STD yarn install
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
|
chmod +x /opt/"${APPLICATION}"/start.sh
|
||||||
msg_ok "Updated $APP to v${RELEASE}"
|
msg_ok "Updated $APP to v${RELEASE}"
|
||||||
|
|
||||||
msg_info "Starting $APP"
|
msg_info "Starting $APP"
|
||||||
|
@ -27,6 +27,7 @@ $STD uv pip install -r /opt/streamlink-webui/backend/src/requirements.txt --pyth
|
|||||||
cd /opt/"${APPLICATION}"/frontend/src
|
cd /opt/"${APPLICATION}"/frontend/src
|
||||||
$STD yarn install
|
$STD yarn install
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
|
chmod +x /opt/"${APPLICATION}"/start.sh
|
||||||
msg_ok "Setup ${APPLICATION}"
|
msg_ok "Setup ${APPLICATION}"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@ -46,7 +47,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/opt/${APPLICATION}.env
|
EnvironmentFile=/opt/${APPLICATION}.env
|
||||||
WorkingDirectory=/opt/${APPLICATION}
|
WorkingDirectory=/opt/${APPLICATION}
|
||||||
ExecStart=start.sh
|
ExecStart=/opt/${APPLICATION}start.sh
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
@ -58,9 +59,7 @@ msg_ok "Created Service"
|
|||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -f "${RELEASE}".zip
|
|
||||||
$STD apt-get -y autoremove
|
$STD apt-get -y autoremove
|
||||||
$STD apt-get -y autoclean
|
$STD apt-get -y autoclean
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user