-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·23 lines (23 loc) · 854 Bytes
/
install.sh
File metadata and controls
executable file
·23 lines (23 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -e
if [ ! -d /opt/xfreerdp ]; then
mkdir /opt/xfreerdp || { echo 'Create folder failed' ; exit 1; }
fi
wget -q https://raw.githubusercontent.com/pbalu-code/xfreerdp-gui/master/xfreerdp-gui.sh -O /opt/xfreerdp/xfreerdp-gui.sh && \
chmod +x /opt/xfreerdp/xfreerdp-gui.sh && \
wget -q https://github.com/pbalu-code/xfreerdp-gui/raw/master/FreeRDP_Icon.png -O /opt/xfreerdp/FreeRDP_Icon.png
if [ $? -eq 0 ]; then
echo "Basic scripts are installed / Updated."
else
echo "Error in download section"
exit 1
fi
wget -q https://raw.githubusercontent.com/pbalu-code/xfreerdp-gui/master/xFreeRDP.desktop -O /usr/share/applications/xFreeRDP.desktop && \
chmod +x /usr/share/applications/xFreeRDP.desktop
if [ $? -eq 0 ]; then
echo "Icon installed / Updated - xFreeRDP"
else
echo "Error when creating or updateing Icon"
exit 1
fi
exit 0