mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-02 03:22:23 +00:00
Update uninstall-tools.sh
This commit is contained in:
parent
350c03874d
commit
218ae9f9bf
@ -69,7 +69,7 @@ uninstall_fastfetch() {
|
||||
|
||||
################################################################
|
||||
|
||||
uninstall_figurine() {
|
||||
uninstall_figurine_() {
|
||||
if ! command -v figurine &>/dev/null; then
|
||||
msg_warn "$(translate "Figurine is not installed.")"
|
||||
return 0
|
||||
@ -84,6 +84,26 @@ uninstall_figurine() {
|
||||
register_tool "figurine" false
|
||||
}
|
||||
|
||||
|
||||
uninstall_figurine() {
|
||||
if ! command -v figurine &>/dev/null; then
|
||||
msg_warn "$(translate "Figurine is not installed.")"
|
||||
return 0
|
||||
fi
|
||||
|
||||
msg_info2 "$(translate "Uninstalling Figurine...")"
|
||||
rm -f /usr/local/bin/figurine
|
||||
rm -f /etc/profile.d/figurine.sh
|
||||
|
||||
sed -i '/lxcclean/d;/lxcupdate/d;/kernelclean/d;/cpugov/d;/updatecerts/d;/seqwrite/d;/seqread/d;/ranwrite/d;/ranread/d' "$HOME/.bashrc" "$HOME/.profile" 2>/dev/null
|
||||
sed -i '/# ProxMenux Figurine aliases and tools/,+20d' "$HOME/.bashrc" "$HOME/.profile" 2>/dev/null
|
||||
sed -i '/# BEGIN PROXMENUX ALIASES/,/# END PROXMENUX ALIASES/d' "$HOME/.bashrc" "$HOME/.profile" 2>/dev/null
|
||||
|
||||
msg_ok "$(translate "Figurine removed from system")"
|
||||
register_tool "figurine" false
|
||||
}
|
||||
|
||||
|
||||
################################################################
|
||||
|
||||
uninstall_kexec() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user