mirror of
https://github.com/YunoHost-Apps/etherpad_ynh.git
synced 2024-09-03 18:36:10 +02:00
Fix
This commit is contained in:
parent
4b2be8fccf
commit
d864115d03
2 changed files with 5 additions and 19 deletions
|
@ -92,7 +92,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# 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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
|
@ -137,24 +137,10 @@ ynh_script_progression --message="Installing Etherpad..." --weight=90
|
||||||
|
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
|
|
||||||
# pushd $final_path || ynh_die
|
pushd $final_path || ynh_die
|
||||||
# ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
# ynh_exec_as $app env $ynh_node_load_PATH src/bin/installDeps.sh
|
ynh_exec_as $app env $ynh_node_load_PATH src/bin/installDeps.sh
|
||||||
# popd || ynh_die
|
popd || ynh_die
|
||||||
|
|
||||||
pushd $final_path
|
|
||||||
mkdir -p node_modules
|
|
||||||
cd node_modules
|
|
||||||
[ -e ep_etherpad-lite ] || ln -s $final_path/src ep_etherpad-lite
|
|
||||||
cd ep_etherpad-lite
|
|
||||||
npm ci --no-optional
|
|
||||||
popd || {
|
|
||||||
rm -rf $final_path/src/node_modules
|
|
||||||
}
|
|
||||||
|
|
||||||
# Remove all minified data to force node creating it new
|
|
||||||
|
|
||||||
rm -f $final_path/var/minified*
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue