deb
parent
539d03c0ae
commit
ffa9c40bf4
|
@ -0,0 +1,9 @@
|
|||
Package: boxpackage
|
||||
Priority: optional
|
||||
Section: admin
|
||||
Maintainer: Can202 <mgoopazo@gmail.com>
|
||||
Architecture: amd64
|
||||
Version: 0.1
|
||||
Depends: python3, lxterminal
|
||||
Description: Installer
|
||||
Simple Visual Installer (apt)
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
ln /usr/lib64/boxpackage/boxpackage /usr/bin/boxpackage
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
rm -f /usr/bin/boxpackage
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -z $1 ]
|
||||
then
|
||||
|
||||
if [ $(whoami) = "root" ]
|
||||
then
|
||||
/usr/lib64/boxpackage/init $1
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "Do you want to use sudo? (Y/n)"
|
||||
read rootcommand
|
||||
if [ $rootcommand = Y ] || [ $rootcommand = y ]
|
||||
then
|
||||
sudo /usr/lib64/boxpackage/init $1
|
||||
exit
|
||||
fi
|
||||
echo "Do you want to use su? (Y/n)"
|
||||
if [ $rootcommand = Y ] || [ $rootcommand = y ]
|
||||
then
|
||||
su root -c '/usr/lib64/boxpackage/init $1'
|
||||
exit
|
||||
fi
|
||||
echo "Error, no root"
|
||||
else
|
||||
echo "Error, waiting \$1"
|
||||
fi
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -z $1 ]
|
||||
then
|
||||
if [ $1 = "sudo" ]
|
||||
then
|
||||
sudo /usr/lib64/boxpackage/init
|
||||
fi
|
||||
if [ $1 = "su" ]
|
||||
then
|
||||
su root -c '/usr/lib64/boxpackage/init'
|
||||
fi
|
||||
else
|
||||
echo "Error, waiting \$1"
|
||||
fi
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -z $1 ]
|
||||
then
|
||||
if [ $1 = "sudo" ]
|
||||
then
|
||||
sudo /usr/lib64/boxpackage/init
|
||||
fi
|
||||
if [ $1 = "su" ]
|
||||
then
|
||||
su root -c '/usr/lib64/boxpackage/init'
|
||||
fi
|
||||
else
|
||||
echo "Error, waiting \$1"
|
||||
fi
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Name=BoxPackage
|
||||
Exec=boxpackage
|
||||
Icon=boxpackage
|
||||
Terminal=True
|
||||
Type=Application
|
||||
Categories=Utility
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Name=BoxPackage Su
|
||||
Exec=boxpackage-su
|
||||
Icon=boxpackage
|
||||
Terminal=True
|
||||
Type=Application
|
||||
Categories=Utility
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Name=BoxPackage Sudo
|
||||
Exec=boxpackage-sudo
|
||||
Icon=boxpackage
|
||||
Terminal=True
|
||||
Type=Application
|
||||
Categories=Utility
|
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
17
exec
17
exec
|
@ -5,9 +5,18 @@ then
|
|||
if [ $1 = "sudo" ]
|
||||
then
|
||||
sudo python3 /home/manuel/Descargas/installer-test/init.py
|
||||
else
|
||||
if [ $1 = "su" ]
|
||||
then
|
||||
su root -c 'python3 /home/manuel/Descargas/installer-test/init.py'
|
||||
else
|
||||
echo execute with sudo? (Y/n)
|
||||
read sudo
|
||||
if [ $sudo = Y ] || [ $sudo = y ]
|
||||
then
|
||||
sudo python3 /home/manuel/Descargas/installer-test/init.py
|
||||
|
||||
fi
|
||||
fi
|
||||
if [ $1 = "su" ]
|
||||
then
|
||||
su root -c 'python3 /home/manuel/Descargas/installer-test/init.py'
|
||||
fi
|
||||
|
||||
fi
|
||||
|
|
2
init.py
2
init.py
|
@ -16,7 +16,7 @@ BUTTONWIDTH='39'
|
|||
TEXTWIDTH=18
|
||||
|
||||
screen = tk.Tk()
|
||||
screen.title("Install")
|
||||
screen.title("BoxPackage")
|
||||
screen.geometry("400x400")
|
||||
screen.resizable(width = False, height = False)
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 329 KiB |
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Loading…
Reference in New Issue