1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git synced 2024-09-03 18:36:09 +02:00
This commit is contained in:
ericgaspar 2021-03-24 14:39:37 +01:00
parent 6ba8b0608c
commit b8d31a1606
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 7 additions and 7 deletions

View file

@ -84,7 +84,7 @@ fi
# Rebuild the meta package and install the new dependencies
( cd scripts # Move to scripts directory to allow the helper to find the manifest where it expects to find it.
ynh_install_app_dependencies $dependencies)
ynh_exec_warn_less ynh_install_app_dependencies $dependencies)
# Remove all unused dependencies
ynh_package_autopurge

View file

@ -84,7 +84,7 @@ fi
# Rebuild the meta package and install the new dependencies
( cd scripts # Move to scripts directory to allow the helper to find the manifest where it expects to find it.
ynh_install_app_dependencies $dependencies)
ynh_exec_warn_less ynh_install_app_dependencies $dependencies)
# Remove all unused dependencies
ynh_package_autopurge

View file

@ -197,8 +197,8 @@ apply_config() {
if [ "$pad_config_automatic_logout" != "$old_pad_config_automatic_logout" ]
then
ynh_use_nodejs
pushd "$final_path/src"
ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
#pushd "$final_path/src"
#ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
if [ "$pad_config_automatic_logout" = "0" ]
then
ynh_replace_string --match_string="^\(.*\"automatic_logut.*$\)" --replace_string="\/\/\1" --target_file="$config_file"
@ -247,8 +247,8 @@ apply_config() {
if [ "$mypads" != "$old_mypads" ]
then
ynh_use_nodejs
pushd "$final_path/src"
ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
#pushd "$final_path/src"
#ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
if [ "$mypads" = "1" ]
then
ynh_exec_as $app env "$ynh_node_load_PATH" npm install ep_mypads@${mypads_version}

View file

@ -50,7 +50,7 @@ if [ "$export" != "none" ]
then
ynh_script_progression --message="Removing dependencies..." --weight=60
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
ynh_exec_warn_less ynh_remove_app_dependencies
fi
#=================================================