1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-19 12:58:06 +00:00

Update kimai.sh

This commit is contained in:
CanbiZ 2025-03-17 10:55:44 +01:00 committed by GitHub
parent eac27ae010
commit a092f4adf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,11 +54,6 @@ function update_script() {
cd /opt/kimai
$STD composer install --no-dev --optimize-autoloader
$STD bin/console kimai:update
chown -R :www-data .
chmod -R g+r .
chmod -R g+rw var/
chmod -R 777 /opt/kimai/*
chown -R www-data:www-data /opt/kimai
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP} to ${RELEASE}"
@ -66,6 +61,14 @@ function update_script() {
systemctl start apache2
msg_ok "Started Apache2"
msg_info "Setup Permissions"
chown -R :www-data /opt/*
chmod -R g+r /opt/*
chmod -R g+rw /opt/*
chown -R www-data:www-data /opt/*
chmod -R 777 /opt/*
msg_ok "Setup Permissions"
msg_info "Cleaning Up"
rm -rf ${RELEASE}.zip
rm -rf "$BACKUP_DIR"