From 164348515b9f4cc729df471c0f04677c9b03dee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sun, 4 Apr 2021 14:10:19 +0200 Subject: [PATCH] Fix small issues and make it rustup more light --- scripts/_common.sh | 2 +- scripts/restore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index ff1a10b..67989ea 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -48,7 +48,7 @@ install_source() { if [ -e $final_path/.rustup ]; then sudo -u "$pgadmin_user" env PATH=$PATH rustup update else - sudo -u "$pgadmin_user" bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=stable' + sudo -u "$pgadmin_user" bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=stable --profile=minimal' fi # Install virtualenv if it don't exist diff --git a/scripts/restore b/scripts/restore index d8ee270..ea2f953 100644 --- a/scripts/restore +++ b/scripts/restore @@ -37,7 +37,7 @@ ynh_install_app_dependencies $dependances # Create user ynh_script_progression --message="Recreating the dedicated system user..." -ynh_system_user_create --username $pgadmin_user --home_dir /var/lib/$app +ynh_system_user_create --username $pgadmin_user --home_dir $final_path # Restore all config and data ynh_script_progression --message="Restoring files..." --weight=5