1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

upgrade: maybe using a subshell aint a good idea, let's try with pushd/popd...

This commit is contained in:
Alexandre Aubin 2023-11-12 19:50:33 +01:00 committed by GitHub
parent 921f49b027
commit 26601c07c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,8 +261,8 @@ then
ynh_replace_string --match_string="^\s*// installed plugins" --replace_string="&\n $installed_plugins" --target_file="$final_path/config/config.inc.php" ynh_replace_string --match_string="^\s*// installed plugins" --replace_string="&\n $installed_plugins" --target_file="$final_path/config/config.inc.php"
# Update JavaScript dependencies # Update JavaScript dependencies
(cd "$final_path" pushd "$final_path"
./bin/update.sh --version="?" -y) ./bin/update.sh --version="?" -y
# Store the config file checksum into the app settings # Store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/config/config.inc.php" ynh_store_file_checksum --file="$final_path/config/config.inc.php"
@ -275,8 +275,8 @@ then
#================================================= #=================================================
ynh_script_progression --message="Updating $app core..." --weight=4 ynh_script_progression --message="Updating $app core..." --weight=4
( cd "$final_path" ynh_exec_warn ./bin/update.sh --version=$oldversion -y
ynh_exec_warn ./bin/update.sh --version=$oldversion -y) popd
fi fi
#================================================= #=================================================