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 () { ynh_clean_setup () {
### Remove this function if there's nothing to clean before calling the remove script. ### Remove this function if there's nothing to clean before calling the remove script.
true true
} }
# Exit if an error occurs during the execution of the script # Exit if an error occurs during the execution of the script
ynh_abort_if_errors 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 ynh_script_progression --message="Installing and configuring Mediawiki..." --weight=14
if [ "$path_url" = "/" ]; then if [ "$path_url" = "/" ]; then
scriptpath="" scriptpath=""
else else
scriptpath=$path_url scriptpath=$path_url
fi fi
"php$phpversion" "$final_path/maintenance/install.php" --conf "$final_path" \ "php$phpversion" "$final_path/maintenance/install.php" --conf "$final_path" \
--server "https://$domain" \ --server "https://$domain" \
--scriptpath "$scriptpath" \ --scriptpath "$scriptpath" \
--dbuser "$db_name" \ --dbuser "$db_name" \
--dbpass "$db_pwd" \ --dbpass "$db_pwd" \
--dbname "$db_name" \ --dbname "$db_name" \
--dbprefix "mdk_" \ --dbprefix "mdk_" \
--lang "$language" \ --lang "$language" \
--pass "$admin_password" \ --pass "$admin_password" \
"$wiki_name" "$admin" "$wiki_name" "$admin"
#================================================= #=================================================
# REPLACE CONFIGURATION SETTINGS # 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 # Upgrade from the legacy permissions system
protected_uris=$(ynh_app_setting_get --app="$app" --key=protected_uris) protected_uris=$(ynh_app_setting_get --app="$app" --key=protected_uris)
if [ -n "${protected_uris}" ]; then if [ -n "${protected_uris}" ]; then
ynh_app_setting_delete --app="$app" --key=protected_uris ynh_app_setting_delete --app="$app" --key=protected_uris
fi fi
# Make app public if necessary # Make app public if necessary
if [ $is_public -eq 1 ]; then if [ $is_public -eq 1 ]; then
# Allow public access on / # Allow public access on /
ynh_permission_update --permission "main" --add "visitors" ynh_permission_update --permission "main" --add "visitors"
fi fi
#================================================= #=================================================