1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00

Indentation

This commit is contained in:
Salamandar 2021-01-25 11:32:04 +01:00 committed by Salamandar
parent 38b4ac907c
commit 911bc5a437
2 changed files with 16 additions and 16 deletions

26
scripts/install Executable file → Normal file
View file

@ -14,8 +14,8 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_clean_setup () {
### Remove this function if there's nothing to clean before calling the remove script.
true
### Remove this function if there's nothing to clean before calling the remove script.
true
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
@ -132,21 +132,21 @@ phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion)
#=================================================
ynh_script_progression --message="Installing and configuring Mediawiki..." --weight=14
if [ "$path_url" = "/" ]; then
scriptpath=""
scriptpath=""
else
scriptpath=$path_url
scriptpath=$path_url
fi
"php$phpversion" "$final_path/maintenance/install.php" --conf "$final_path" \
--server "https://$domain" \
--scriptpath "$scriptpath" \
--dbuser "$db_name" \
--dbpass "$db_pwd" \
--dbname "$db_name" \
--dbprefix "mdk_" \
--lang "$language" \
--pass "$admin_password" \
"$wiki_name" "$admin"
--server "https://$domain" \
--scriptpath "$scriptpath" \
--dbuser "$db_name" \
--dbpass "$db_pwd" \
--dbname "$db_name" \
--dbprefix "mdk_" \
--lang "$language" \
--pass "$admin_password" \
"$wiki_name" "$admin"
#=================================================
# REPLACE CONFIGURATION SETTINGS

6
scripts/upgrade Executable file → Normal file
View file

@ -195,13 +195,13 @@ ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1
# Upgrade from the legacy permissions system
protected_uris=$(ynh_app_setting_get --app="$app" --key=protected_uris)
if [ -n "${protected_uris}" ]; then
ynh_app_setting_delete --app="$app" --key=protected_uris
ynh_app_setting_delete --app="$app" --key=protected_uris
fi
# Make app public if necessary
if [ $is_public -eq 1 ]; then
# Allow public access on /
ynh_permission_update --permission "main" --add "visitors"
# Allow public access on /
ynh_permission_update --permission "main" --add "visitors"
fi
#=================================================