1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scrumblr_ynh.git synced 2024-09-03 20:16:29 +02:00
This commit is contained in:
ericgaspar 2021-11-28 22:14:57 +01:00
parent 576f28149a
commit 446f351ca4
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 12 additions and 6 deletions

View file

@ -3,7 +3,7 @@
"id": "scrumblr",
"packaging_format": 1,
"description": {
"en": "Software for notes",
"en": "Software for post-it notes",
"fr": "Application pour créer des post-it"
},
"version": "0.2.0~ynh1",

View file

@ -120,7 +120,7 @@ ynh_add_systemd_config
pushd $final_path
ynh_use_nodejs
$ynh_npm install >> 2>&1
ynh_exec_warn_less $ynh_npm install
popd
#=================================================
@ -136,7 +136,7 @@ yunohost service add $app --description="Software for notes" --log="/var/log/$ap
ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Server running at port"
#=================================================
# Set Public or private

View file

@ -103,7 +103,7 @@ yunohost service add $app --description="Software for notes" --log="/var/log/$ap
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Server running at port"
#=================================================
# GENERIC FINALIZATION

View file

@ -83,8 +83,14 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
pushd $final_path
ynh_use_nodejs
ynh_exec_warn_less $ynh_npm install
popd
fi
chmod 750 "$final_path"
@ -111,7 +117,7 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
# Create a dedicated systemd config
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
ynh_add_systemd_config
#=================================================
@ -136,7 +142,7 @@ yunohost service add $app --description="Software for notes" --log="/var/log/$ap
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Server running at port"
#=================================================
# RELOAD NGINX