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

Check if rust exits before removing it

This commit is contained in:
anmol 2018-11-22 01:44:32 +05:30
parent 7868979543
commit da37bfaba9

View file

@ -47,10 +47,13 @@ fi
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin"
export FEATURES=postgres
( cd $final_path/$app && sudo -u "$app" cargo uninstall diesel_cli )
sudo /usr/local/lib/rustlib/uninstall.sh
if [ -d "/usr/local/lib/rustlib" ]; then
sudo /usr/local/lib/rustlib/uninstall.sh
fi
#=================================================
# REMOVE APP MAIN DIR