diff --git a/scripts/install b/scripts/install index 06a2c720..1efc68fc 100755 --- a/scripts/install +++ b/scripts/install @@ -29,7 +29,7 @@ path_url="/" admin=$YNH_APP_ARG_ADMIN email=$(ynh_user_get_info --username=$admin --key=mail) random_string=$(ynh_string_random --length=64) -time_zone=$ +timezone="$(cat /etc/timezone)" app=$YNH_APP_INSTANCE_NAME @@ -211,14 +211,6 @@ ynh_script_progression --message="Add Fail2Ban..." ynh_add_fail2ban_config --logpath="$final_path/php.log" --failregex="^.*auth\.php.*failed login attempt.*from IP .*$" --max_retry="5" -#================================================= -# SETUP SSOWAT -#================================================= -# As Hubzilla is social network and have its own permission there is no need to keep Hubzilla behind SSO -ynh_script_progression --message="Configuring permissions..." - -ynh_permission_update --permission="main" --add="visitors" - #================================================= # RELOAD NGINX #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a31b3775..56e5ab89 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -187,23 +187,6 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" -#================================================= -# UPGRADE DEPENDENCIES -#================================================= -ynh_script_progression --message="Upgrading dependencies..." - -#================================================= -# CHECK VERSION FOR SPECIFIC MYSQL UPDATE -#================================================= - -# Check version and if this version was a fresh install push mysql query -db_name=$(ynh_app_setting_get --app=$app --key=db_name) -db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) -is_version_equal_three_eight_four=$(awk 'BEGIN{ print "'$version'"<"'3.8.4'" }') -if [ -z "$last_update" ] && [ "$is_version_equal_three_eight_four" -eq 1 ]; then - ynh_mysql_connect_as "$db_name" "$db_pwd" "$db_name" < "../conf/sql/385.sql" -fi - #================================================= # RELOAD NGINX #=================================================