From d810a7cbee86cfd6531812e92e0adfe27ed2e868 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 16 May 2020 14:28:07 +0200 Subject: [PATCH] typo --- conf/systemd.service | 2 +- scripts/install | 4 ++-- scripts/restore | 5 ++--- scripts/upgrade | 15 ++++++++++++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 7823f2b..fb27ea4 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=/usr/bin/mailisearch --http-addr 127.0.0.1:__PORT__ --env production --master-key __API_KEY__ --no-analytics __ANALYTICS__ +ExecStart=/usr/bin/meilisearch --http-addr 127.0.0.1:__PORT__ --env production --master-key __API_KEY__ --no-analytics __ANALYTICS__ [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index 353d695..c7073e6 100644 --- a/scripts/install +++ b/scripts/install @@ -72,10 +72,10 @@ port=$(ynh_find_port --port=8095) ynh_app_setting_set --app=$app --key=port --value=$port #================================================= -# DOWNLOAD AND INSTALL MAILISEARCH +# DOWNLOAD AND INSTALL MEILISEARCH #================================================= -ynh_script_progression --message="Installing mailisearch..." --time --weight=1 +ynh_script_progression --message="Installing meilisearch..." --time --weight=1 arch=$(ynh_detect_arch) diff --git a/scripts/restore b/scripts/restore index 7545eb0..e8bc87f 100644 --- a/scripts/restore +++ b/scripts/restore @@ -107,11 +107,10 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= # GENERIC FINALIZATION #================================================= -# RELOAD NGINX AND PHP-FPM +# RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server and php-fpm..." --time --weight=1 +ynh_script_progression --message="Reloading nginx web server..." --time --weight=1 -ynh_systemd_action --service_name=php7.0-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5ff5556..45ec965 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,11 +99,20 @@ ynh_script_progression --message="Upgrading nginx web server configuration..." - ynh_add_nginx_config #================================================= -# UPGRADING MAILISEARCH +# UPGRADING MEILISEARCH #================================================= -ynh_script_progression --message="Upgrading mailisearch..." --time --weight=1 +ynh_script_progression --message="upgrading meilisearch..." --time --weight=1 -ynh_installation_mailisearch +arch=$(ynh_detect_arch) + +if [ "$arch" != "amd64" ] && [ "$arch" != "armv8" ] +then + ynh_die --message="Your OS Architecture is not supported" +fi +release_file=meilisearch-linux-$arch +curl -OL https://github.com/meilisearch/MeiliSearch/releases/download/$latest/meilisearch-linux-$arch +chmod +x "$release_file" +mv "$release_file" /usr/bin/meilisearch #================================================= # CREATE DEDICATED USER