1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/open-web-calendar_ynh.git synced 2024-09-03 19:56:09 +02:00
This commit is contained in:
Éric Gaspar 2024-02-08 23:14:21 +01:00
parent 7370d3b672
commit 7995e13a01
3 changed files with 15 additions and 5 deletions

View file

@ -31,12 +31,12 @@ ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
yunohost service add "$app" --description="A short description of the app" --log="/var/log/$app/$app.log"
yunohost service add "$app" --description="Customizable web calendar" --log="/var/log/$app/$app.log"
#=================================================
# BUILDING OPEN WEB CALENDAR
#=================================================
ynh_script_progression --message="Building $app..."
ynh_script_progression --message="Building $app..." --weight=5
pushd "$install_dir"
python3 -m venv venv

View file

@ -29,7 +29,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
systemctl enable "$app.service" --quiet
yunohost service add "$app" --description="A short description of the app" --log="/var/log/$app/$app.log"
yunohost service add "$app" --description="Customizable web calendar" --log="/var/log/$app/$app.log"
#=================================================
# GENERIC FINALIZATION

View file

@ -21,7 +21,6 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from manifest.toml
@ -38,7 +37,18 @@ ynh_add_nginx_config
ynh_add_systemd_config
yunohost service add "$app" --description="A short description of the app" --log="/var/log/$app/$app.log"
yunohost service add "$app" --description="Customizable web calendar" --log="/var/log/$app/$app.log"
#=================================================
# BUILDING OPEN WEB CALENDAR
#=================================================
ynh_script_progression --message="Building $app..." --weight=5
pushd "$install_dir"
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -r requirements.txt
popd
#=================================================
# RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS...)