diff --git a/check_process b/check_process index 9431972..b8d9626 100644 --- a/check_process +++ b/check_process @@ -12,7 +12,7 @@ setup_private=1 setup_public=1 upgrade=1 - upgrade=1 from_commit=bd00c8e3ce43563f33fde073cf36b997c348d05c + #upgrade=1 from_commit=bd00c8e3ce43563f33fde073cf36b997c348d05c backup_restore=1 multi_instance=0 change_url=1 diff --git a/scripts/install b/scripts/install index 0aa2e29..e643928 100644 --- a/scripts/install +++ b/scripts/install @@ -152,7 +152,7 @@ yunohost service add $app --description="Client Web IRC" --log="/var/log/$app/$a ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action=start --log_path=systemd #--line_match="Available at http" +ynh_systemd_action --service_name=$app --action=start --log_path=systemd #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index 7656d30..5230f2e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,10 +93,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." - ynh_secure_remove --file=$final_path - + ynh_secure_remove --file="$final_path" # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + ynh_setup_source --dest_dir=$final_path fi chmod 750 "$final_path" @@ -136,21 +135,14 @@ ynh_add_config --template="../conf/config.js" --destination="$datadir/config.js" if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_script_progression --message="Upgrading the lounge..." pushd $final_path - ynh_use_nodejs - ynh_exec_warn_less NODE_ENV=production yarn install + ynh_use_nodejs + ynh_exec_warn_less NODE_ENV=production yarn install + yarn add webpack webpack-dev-server --dev ynh_exec_warn_less NODE_ENV=production yarn build popd fi -#================================================= -# MODIFY A CONFIG FILE -#================================================= -ynh_script_progression --message="Modifying a config file..." - -ynh_add_config --template="../conf/config.js" --destination="$config_path/config.js" - #================================================= # SETUP SYSTEMD #=================================================