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

Use suggestion of COMPOSER_ALLOW_SUPERUSER=1 from @nicofrand

This commit is contained in:
Salamandar 2024-01-26 23:10:47 +01:00
parent 85109ff840
commit 1768b0bad0

View file

@ -78,11 +78,11 @@ if [ -z "$with_carddav" ]; then
ynh_app_setting_set --app=$app --key=with_carddav --value=$with_carddav
fi
# If language doesn't exist, create it
if [ -z "$language" ]; then
# If language doesn't exist, create it
if [ -z "$language" ]; then
language="en_GB"
ynh_app_setting_set --app=$app --key=language --value=$language
fi
fi
# If fpm_footprint doesn't exist, create it
if [ -z "$fpm_footprint" ]; then
@ -262,7 +262,7 @@ then
# Update JavaScript dependencies
pushd "$final_path"
./bin/update.sh --version="?" -y <<< ""
COMPOSER_ALLOW_SUPERUSER=1 ./bin/update.sh --version="?" -y <<< ""
# Store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/config/config.inc.php"
@ -275,7 +275,7 @@ then
#=================================================
ynh_script_progression --message="Updating $app core..." --weight=4
ynh_exec_warn ./bin/update.sh --version=$oldversion -y
COMPOSER_ALLOW_SUPERUSER=1 ynh_exec_warn ./bin/update.sh --version=$oldversion -y
popd
fi