1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-26 20:50:18 +00:00

Update kimai-install.sh

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

View File

@ -71,12 +71,6 @@ $STD composer install --no-dev --optimize-autoloader --no-interaction
cp .env.dist .env
sed -i "/^DATABASE_URL=/c\DATABASE_URL=mysql://$DB_USER:$DB_PASS@127.0.0.1:3306/$DB_NAME?charset=utf8mb4&serverVersion=$MYSQL_VERSION" /opt/kimai/.env
$STD bin/console kimai:install -n
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/*
chmod -R 777 /opt/kimai/*
$STD expect <<EOF
set timeout -1
log_user 0
@ -127,6 +121,14 @@ $STD a2dissite 000-default.conf
$STD systemctl reload apache2
msg_ok "Created Service"
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"
motd_ssh
customize