Skip to content

Commit a092f4a

Browse files
authored
Update kimai.sh
1 parent eac27ae commit a092f4a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ct/kimai.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,21 @@ function update_script() {
5454
cd /opt/kimai
5555
$STD composer install --no-dev --optimize-autoloader
5656
$STD bin/console kimai:update
57-
chown -R :www-data .
58-
chmod -R g+r .
59-
chmod -R g+rw var/
60-
chmod -R 777 /opt/kimai/*
61-
chown -R www-data:www-data /opt/kimai
6257
echo "${RELEASE}" >/opt/${APP}_version.txt
6358
msg_ok "Updated ${APP} to ${RELEASE}"
6459

6560
msg_info "Starting Apache2"
6661
systemctl start apache2
6762
msg_ok "Started Apache2"
6863

64+
msg_info "Setup Permissions"
65+
chown -R :www-data /opt/*
66+
chmod -R g+r /opt/*
67+
chmod -R g+rw /opt/*
68+
chown -R www-data:www-data /opt/*
69+
chmod -R 777 /opt/*
70+
msg_ok "Setup Permissions"
71+
6972
msg_info "Cleaning Up"
7073
rm -rf ${RELEASE}.zip
7174
rm -rf "$BACKUP_DIR"

0 commit comments

Comments
 (0)