mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-07 16:29:18 +00:00
Compare commits
No commits in common. "d69f37a9381011f7212f4ad9eba51bfd445767e1" and "18820d36b2e1097b3933a3bfacc1ee1005b67f70" have entirely different histories.
d69f37a938
...
18820d36b2
@ -79,7 +79,7 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
|
|||||||
sudo chown -R www-data:www-data /opt/kimai
|
sudo chown -R www-data:www-data /opt/kimai
|
||||||
sudo chmod -R 755 /opt/kimai
|
sudo chmod -R 755 /opt/kimai
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
msg_ok "Updated ${APP}"
|
||||||
|
|
||||||
msg_info "Starting Apache2"
|
msg_info "Starting Apache2"
|
||||||
systemctl start apache2
|
systemctl start apache2
|
||||||
|
@ -33,9 +33,9 @@ DB_NAME=kimai_db
|
|||||||
DB_USER=kimai
|
DB_USER=kimai
|
||||||
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||||
MYSQL_VERSION=$(mysql --version | grep -oP 'Distrib \K[0-9]+\.[0-9]+\.[0-9]+')
|
MYSQL_VERSION=$(mysql --version | grep -oP 'Distrib \K[0-9]+\.[0-9]+\.[0-9]+')
|
||||||
mysql -u root -e "CREATE DATABASE $DB_NAME;"
|
sudo mysql -u root -e "CREATE DATABASE $DB_NAME;"
|
||||||
mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
|
sudo mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
|
||||||
mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
sudo mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
|
||||||
{
|
{
|
||||||
echo "Kimai-Credentials"
|
echo "Kimai-Credentials"
|
||||||
echo "Kimai Database User: $DB_USER"
|
echo "Kimai Database User: $DB_USER"
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
"type": "default",
|
"type": "default",
|
||||||
"script": "/ct/kimai.sh",
|
"script": "/ct/kimai.sh",
|
||||||
"resources": {
|
"resources": {
|
||||||
"cpu": "2",
|
"cpu": 2,
|
||||||
"ram": "2048",
|
"ram": 2048,
|
||||||
"hdd": "7",
|
"hdd": "7",
|
||||||
"os": "Debian",
|
"os": "Debian",
|
||||||
"version": 12
|
"version": 12
|
||||||
|
Loading…
Reference in New Issue
Block a user