Compare commits

...

7 Commits

Author SHA1 Message Date
CanbiZ
18820d36b2
Update install/kimai-install.sh
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 21:46:28 +01:00
CanbiZ
8f31d8bc7f
Update ct/kimai.sh
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 21:45:33 +01:00
CanbiZ
402d32b436
Update install/kimai-install.sh
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 21:44:46 +01:00
CanbiZ
9dcec0e0ce
Update install/kimai-install.sh
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 21:44:37 +01:00
CanbiZ
47760631ba
Update install/kimai-install.sh
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 21:44:29 +01:00
CanbiZ
198f3147e1
Update json/kimai.json
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 21:44:20 +01:00
CanbiZ
7930857fcc
Update ct/kimai.sh
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-20 21:43:57 +01:00
3 changed files with 6 additions and 6 deletions

View File

@ -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
msg_info "Stopping Apache2"
systemctl stop apache2
msg_ok "Services Stopped"
msg_ok "Stopped Apache2"
msg_info "Updating ${APP} to ${RELEASE}"
cp /opt/kimai/.env /opt/.env
@ -94,6 +94,7 @@ else
fi
exit
}
start
build_container
description

View File

@ -12,7 +12,6 @@ catch_errors
setting_up_container
network_check
update_os
#add_core_dependencies
msg_info "Installing Dependencies"
$STD apt-get install -y \
@ -29,7 +28,7 @@ $STD apt-get install -y \
php8.2-{mbstring,gd,intl,pdo,mysql,tokenizer,zip,xml}
msg_ok "Installed Dependencies"
msg_info "Setting up Database"
msg_info "Setting up database"
DB_NAME=kimai_db
DB_USER=kimai
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
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) }')
wget -q "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip"
unzip -q ${RELEASE}.zip
@ -96,7 +95,7 @@ EOF
$STD a2ensite kimai.conf
$STD a2dissite 000-default.conf
$STD systemctl reload apache2
msg_ok "Created Services"
msg_ok "Created Service"
motd_ssh
customize

View File

@ -20,7 +20,7 @@
"resources": {
"cpu": 2,
"ram": 2048,
"hdd": null,
"hdd": "7",
"os": "Debian",
"version": 12
}