From 4773c4b81b39ec1356c9db3984fe89583b61ff7f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 10 Jan 2020 21:31:05 +0100 Subject: [PATCH 1/2] remove GeoLite2-City --- scripts/install | 2 -- scripts/remove | 5 ++++- scripts/upgrade | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index bdaa61a..2122a4f 100644 --- a/scripts/install +++ b/scripts/install @@ -188,8 +188,6 @@ pushd $final_path/$app sudo -u "$app" MIX_ENV=prod mix phx.digest popd -curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz --output GeoLite2-City.tar.gz -s && tar zxf GeoLite2-City.tar.gz && mkdir -p /usr/share/GeoIP && mv GeoLite2-City_*/GeoLite2-City.mmdb $final_path/$app/priv/data/GeoLite2-City.mmdb - #================================================= # SETUP SYSTEMD #================================================= diff --git a/scripts/remove b/scripts/remove index 03552d5..f169aa2 100644 --- a/scripts/remove +++ b/scripts/remove @@ -95,7 +95,10 @@ fi #================================================= # Remove the log files -ynh_secure_remove --file="/var/log/$app/" +ynh_secure_remove --file="/var/log/$app" + +# Remove the GeoIP folder +ynh_secure_remove --file="/usr/share/GeoIP" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 14e2222..8b3efa9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,6 +63,10 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi +ynh_secure_remove --file="$final_path/$app/priv/data/GeoLite2-City.mmdb" + +ynh_secure_remove --file="/usr/share/GeoIP" + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= From f939bc10602c94cc58d6a74456bcbb26ce35fcc2 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 10 Jan 2020 21:58:21 +0100 Subject: [PATCH 2/2] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 683df7c..93df62a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Mobilizon is a tool designed to create platforms for managing communities and ev 1. Even if requested during installation: admin, language and password variables are not used 1. Admin Dashboard is still not implemented 1. When your mobilizon instance is installed, you need to register. -1. When registered to be admin you have to manually goes in PostgreSQL, database $app, table users, and change the role value to `administrator` instead of `user` (other role available: `moderator`) +1. When registered, to be admin you have to manually goes in PostgreSQL, database $app, table users, and change the role value to `administrator` instead of `user` (other role available: `moderator`) Example to manually put user with id=1 as administrator: ```bash