1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

rust nightly install and diesel remove

This commit is contained in:
anmol26s 2018-09-09 00:47:03 +05:30
parent d08d4d5c81
commit 9796bb9362
2 changed files with 3 additions and 1 deletions

View file

@ -128,7 +128,7 @@ ynh_setup_source "$final_path"
# Create a system user # Create a system user
ynh_system_user_create $app $final_path 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" export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin"
( cd $final_path && cargo build ) ( cd $final_path && cargo build )
( cd $final_path && cargo install diesel_cli --no-default-features --features postgres --version '=1.2.0' ) ( cd $final_path && cargo install diesel_cli --no-default-features --features postgres --version '=1.2.0' )

View file

@ -49,6 +49,8 @@ fi
# Remove metapackage and its dependencies # Remove metapackage and its dependencies
ynh_remove_app_dependencies ynh_remove_app_dependencies
( cd $final_path && cargo uninstall diesel_cli )
sudo /usr/local/lib/rustlib/uninstall.sh sudo /usr/local/lib/rustlib/uninstall.sh
#================================================= #=================================================