new format little fixes icons sort add policy add .desktop File install Part 2

This commit is contained in:
2024-09-17 20:57:11 +02:00
parent f09e6eed0d
commit 80c29c4f11
59 changed files with 223 additions and 115 deletions

39
install Executable file

@ -0,0 +1,39 @@
#!/bin/bash
USER_FOR_GROUP=$USER
which sudo >/dev/null
if [ $? -ne 0 ]
then
su -
apt install python3-tk && apt install tcl-ttkthemes && \
cp wg_main.py start_wg.py wg_func.py wirepy /usr/bin/ && \
mkdir -p /etc/wire_py && cp -R wp-icons /usr/share/icons/ && \
if [ ! -e /usr/local/bin/wirepy ]
then
sudo ln -s /usr/bin/wirepy.py /usr/local/bin/wirepy
fi
cp org.wirepy.policy /usr/share/polkit-1/actions/ && \
cp Wire-Py.desktop /usr/share/applications/ && \
chown -R root:root /usr/bin/wire-py && \
cp wg_start.services /lib/systemd/system/ && \
systemctl enable wg_start.service
else
sudo apt install python3-tk && sudo apt install tcl-ttkthemes && \
sudo cp wg_main.py start_wg.py wg_func.py wirepy /usr/bin/ && \
sudo mkdir -p /etc/wire_py && sudo cp -R wp-icons /usr/share/icons/ && \
if [ ! -e /usr/local/bin/wirepy ]
then
sudo ln -s /usr/bin/wirepy.py /usr/local/bin/wirepy
fi
sudo cp org.wirepy.policy /usr/share/polkit-1/actions/ && \
sudo cp Wire-Py.desktop /usr/share/applications/ && \
sudo chown -R root:root /usr/bin/ && \
sudo cp wg_start.service /lib/systemd/system/ && \
sudo systemctl enable wg_start.service
fi
read -n 1 -s -r -p $"To close the Window press a button"