From be6e7faa3c16a273d8e0a7d0d6d2f3e8e01b1e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 11 Apr 2024 10:26:09 +0200 Subject: [PATCH] Update install --- scripts/install | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/scripts/install b/scripts/install index c80faca..0c96be6 100644 --- a/scripts/install +++ b/scripts/install @@ -27,44 +27,6 @@ ynh_setup_source --dest_dir=$install_dir chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" -#================================================= -# INSTALL ETHERPAD -#================================================= -#ynh_script_progression --message="Installing $app..." --weight=60 - -#pushd $install_dir -# ynh_use_nodejs -# ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH bin/installDeps.sh -#popd - -#================================================= -# MODIFY A CONFIG FILE -#================================================= -ynh_script_progression --message="Configuring $app..." --weight=6 - -ynh_add_config --template="settings.json" --destination="$install_dir/settings.json" -chmod 400 "$install_dir/settings.json" -chown $app:$app "$install_dir/settings.json" - -if [ "$export" = "abiword" ] -then - # Get AbiWord binary path - abiword_path=`which abiword` - # Set the path of AbiWord into Etherpad config - ynh_replace_string --match_string="\"abiword\" : null" --replace_string="\"abiword\" : \"$abiword_path\"" --target_file="$install_dir/settings.json" -elif [ "$export" = "libreoffice" ] -then - # Get soffice binary path - soffice_path=`which soffice` - # Set the path of soffice into Etherpad config - ynh_replace_string --match_string="\"soffice\" : null" --replace_string="\"soffice\" : \"$soffice_path\"" --target_file="$install_dir/settings.json" -fi -ynh_store_file_checksum --file="$install_dir/settings.json" - -ynh_add_config --template="credentials.json" --destination="$install_dir/credentials.json" -chmod 400 "$install_dir/credentials.json" -chown $app:$app "$install_dir/credentials.json" - #================================================= # SETUP SYSTEMD #=================================================