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:
parent
7868979543
commit
da37bfaba9
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue