mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-20 00:28:06 +00:00
Update kimai.sh
This commit is contained in:
parent
eac27ae010
commit
a092f4adf5
13
ct/kimai.sh
13
ct/kimai.sh
@ -54,11 +54,6 @@ function update_script() {
|
|||||||
cd /opt/kimai
|
cd /opt/kimai
|
||||||
$STD composer install --no-dev --optimize-autoloader
|
$STD composer install --no-dev --optimize-autoloader
|
||||||
$STD bin/console kimai:update
|
$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
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
msg_ok "Updated ${APP} to ${RELEASE}"
|
||||||
|
|
||||||
@ -66,6 +61,14 @@ function update_script() {
|
|||||||
systemctl start apache2
|
systemctl start apache2
|
||||||
msg_ok "Started 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"
|
msg_info "Cleaning Up"
|
||||||
rm -rf ${RELEASE}.zip
|
rm -rf ${RELEASE}.zip
|
||||||
rm -rf "$BACKUP_DIR"
|
rm -rf "$BACKUP_DIR"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user