-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.sh
More file actions
15 lines (15 loc) · 725 Bytes
/
Copy pathclean.sh
File metadata and controls
15 lines (15 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
if [ $(whoami) != "root" ]
then
echo " ____ __ ____ __ ____ ____ ____ _ _ __ _ __ ____ ____ __ __ ____
( _ \( ) ( __) / _\ / ___)( __) ( _ \/ )( \( ( \ / _\ / ___) ( _ \ / \ / \ (_ _)
) __// (_/\ ) _) / \\___ \ ) _) ) /) \/ (/ / / \\___ \ ) /( O )( O ) )(
(__) \____/(____)\_/\_/(____/(____) (__\_)\____/\_)__) \_/\_/(____/ (__\_) \__/ \__/ (__) "
else
user=$(who|awk '{print $1}')
homedir=$(cat /etc/passwd | grep -i $user | cut -d ":" -f6)
cd /usr/local/src
rm -rf crmpromote
rm -rf $homedir/Desktop/Crm.desktop
sed -i "9 s|rm -rf /tmp/crm_done_task| |" /etc/init/shutdown.conf
fi