38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| 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/ && \
 | |
|       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 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"
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 |