mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-28 19:46:17 +00:00
Compare commits
7 Commits
f3898783e3
...
18820d36b2
Author | SHA1 | Date | |
---|---|---|---|
|
18820d36b2 | ||
|
8f31d8bc7f | ||
|
402d32b436 | ||
|
9dcec0e0ce | ||
|
47760631ba | ||
|
198f3147e1 | ||
|
7930857fcc |
@ -61,7 +61,7 @@ RELEASE=$(curl -s https://api.github.com/repos/kimai/kimai/releases/latest | gre
|
|||||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
||||||
msg_info "Stopping Apache2"
|
msg_info "Stopping Apache2"
|
||||||
systemctl stop apache2
|
systemctl stop apache2
|
||||||
msg_ok "Services Stopped"
|
msg_ok "Stopped Apache2"
|
||||||
|
|
||||||
msg_info "Updating ${APP} to ${RELEASE}"
|
msg_info "Updating ${APP} to ${RELEASE}"
|
||||||
cp /opt/kimai/.env /opt/.env
|
cp /opt/kimai/.env /opt/.env
|
||||||
@ -94,6 +94,7 @@ else
|
|||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
build_container
|
build_container
|
||||||
description
|
description
|
||||||
|
@ -12,7 +12,6 @@ catch_errors
|
|||||||
setting_up_container
|
setting_up_container
|
||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
#add_core_dependencies
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
@ -29,7 +28,7 @@ $STD apt-get install -y \
|
|||||||
php8.2-{mbstring,gd,intl,pdo,mysql,tokenizer,zip,xml}
|
php8.2-{mbstring,gd,intl,pdo,mysql,tokenizer,zip,xml}
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up Database"
|
msg_info "Setting up database"
|
||||||
DB_NAME=kimai_db
|
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)
|
||||||
@ -45,7 +44,7 @@ sudo mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH
|
|||||||
} >> ~/kimai.creds
|
} >> ~/kimai.creds
|
||||||
msg_ok "Set up database"
|
msg_ok "Set up database"
|
||||||
|
|
||||||
msg_info "Setup Kimai (Patience)"
|
msg_info "Installing Kimai (Patience)"
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/kimai/kimai/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/kimai/kimai/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
wget -q "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip"
|
wget -q "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip"
|
||||||
unzip -q ${RELEASE}.zip
|
unzip -q ${RELEASE}.zip
|
||||||
@ -96,7 +95,7 @@ EOF
|
|||||||
$STD a2ensite kimai.conf
|
$STD a2ensite kimai.conf
|
||||||
$STD a2dissite 000-default.conf
|
$STD a2dissite 000-default.conf
|
||||||
$STD systemctl reload apache2
|
$STD systemctl reload apache2
|
||||||
msg_ok "Created Services"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
"resources": {
|
"resources": {
|
||||||
"cpu": 2,
|
"cpu": 2,
|
||||||
"ram": 2048,
|
"ram": 2048,
|
||||||
"hdd": null,
|
"hdd": "7",
|
||||||
"os": "Debian",
|
"os": "Debian",
|
||||||
"version": 12
|
"version": 12
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user