-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer-desktop.sh
34 lines (28 loc) · 1.47 KB
/
installer-desktop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# Reset
UUID=$(id -u)
UUID=$(( UUID + 0 ))
I_OK="✔"
I_KO="✖️"
if [ $UUID != 0 ]; then
echo "${I_KO} Start the Script as 'root' for it to work properly ${I_KO}";
exit 1;
else
URLgithub="https://raw.githubusercontent.com/afimpel/upgrade-system-alpine"
wget --no-cache -O - ${URLgithub}/main/installer.sh | sh
apk add xterm
mkdir -p /usr/share/pixmaps/
mkdir -p /usr/share/applications/
wget --no-cache -O /usr/bin/pkexec_upgrade-system ${URLgithub}/main/pkexec_upgrade-system
wget --no-cache -O /usr/bin/pkexec_upgrade-system-poweroff ${URLgithub}/main/pkexec_upgrade-system-poweroff
wget --no-cache -O /usr/bin/pkexec_upgrade-system-reboot ${URLgithub}/main/pkexec_upgrade-system-reboot
wget --no-cache -O /usr/share/applications/gksu_upgrade.desktop ${URLgithub}/main/Desktop/gksu_upgrade.desktop
wget --no-cache -O /usr/share/applications/gksu_poweroff.desktop ${URLgithub}/main/Desktop/gksu_poweroff.desktop
wget --no-cache -O /usr/share/applications/gksu_reboot.desktop ${URLgithub}/main/Desktop/gksu_reboot.desktop
wget --no-cache -O /usr/share/pixmaps/upgrade.png ${URLgithub}/main/Desktop/upgrade.png
wget --no-cache -O /usr/share/pixmaps/shutdown.png ${URLgithub}/main/Desktop/shutdown.png
wget --no-cache -O /usr/share/pixmaps/reboot.png ${URLgithub}/main/Desktop/reboot.png
chmod 777 /usr/share/applications/gksu_*
chmod 777 /usr/share/pixmaps/* -R
chmod 777 /usr/bin/pkexec_upgrad* -R
fi