From 9796bb93621e051d9d92b795ef4f7c9891ee330d Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sun, 9 Sep 2018 00:47:03 +0530 Subject: [PATCH] rust nightly install and diesel remove --- scripts/install | 2 +- scripts/remove | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index c4340a6..faddfad 100755 --- a/scripts/install +++ b/scripts/install @@ -128,7 +128,7 @@ ynh_setup_source "$final_path" # Create a system user ynh_system_user_create $app $final_path -( cd $final_path && curl -sf -L https://static.rust-lang.org/rustup.sh | sh ) +( cd $final_path && curl -sf -L https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly --date=2018-05-31 ) export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin" ( cd $final_path && cargo build ) ( cd $final_path && cargo install diesel_cli --no-default-features --features postgres --version '=1.2.0' ) diff --git a/scripts/remove b/scripts/remove index a3d4a36..f40c85f 100755 --- a/scripts/remove +++ b/scripts/remove @@ -49,6 +49,8 @@ fi # Remove metapackage and its dependencies ynh_remove_app_dependencies +( cd $final_path && cargo uninstall diesel_cli ) + sudo /usr/local/lib/rustlib/uninstall.sh #=================================================