master
Can202 2021-09-06 18:58:54 -03:00
parent 51aab00f64
commit bd0635ee9a
8 changed files with 15 additions and 28 deletions

View File

@ -3,7 +3,7 @@ Priority: optional
Section: admin Section: admin
Maintainer: Can202 <mgoopazo@gmail.com> Maintainer: Can202 <mgoopazo@gmail.com>
Architecture: amd64 Architecture: amd64
Version: 0.1 Version: 0.2
Depends: python3, lxterminal Depends: python3, lxterminal
Description: Installer Description: Installer
Simple Visual Installer (apt) Simple Visual Installer (apt)

View File

@ -1,2 +1,4 @@
#!/bin/bash #!/bin/bash
ln /usr/lib64/boxpackage/boxpackage /usr/bin/boxpackage ln /usr/lib64/boxpackage/boxpackage /usr/bin/boxpackage
ln /usr/lib64/boxpackage/boxpackage-su /usr/bin/boxpackage-su
ln /usr/lib64/boxpackage/boxpackage-sudo /usr/bin/boxpackage-sudo

View File

@ -1,2 +1,4 @@
#!/bin/bash #!/bin/bash
rm -f /usr/bin/boxpackage rm -f /usr/bin/boxpackage
rm -f /usr/bin/boxpackage-sudo
rm -f /usr/bin/boxpackage-su

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
xdg-mime default boxpackage.desktop application/vnd.debian.binary-package
if [ ! -z $1 ] if [ ! -z $1 ]
then then
@ -17,6 +19,7 @@ then
exit exit
fi fi
echo "Do you want to use su? (Y/n)" echo "Do you want to use su? (Y/n)"
read rootcommand
if [ $rootcommand = Y ] || [ $rootcommand = y ] if [ $rootcommand = Y ] || [ $rootcommand = y ]
then then
su root -c '/usr/lib64/boxpackage/init $1' su root -c '/usr/lib64/boxpackage/init $1'

View File

@ -1,15 +1,5 @@
#!/bin/bash #!/bin/bash
if [ ! -z $1 ] xdg-mime default boxpackage.desktop application/vnd.debian.binary-package
then
if [ $1 = "sudo" ] su root -c '/usr/lib64/boxpackage/init'
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

View File

@ -1,15 +1,5 @@
#!/bin/bash #!/bin/bash
if [ ! -z $1 ] xdg-mime default boxpackage.desktop application/vnd.debian.binary-package
then
if [ $1 = "sudo" ] sudo /usr/lib64/boxpackage/init
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

Binary file not shown.

View File

@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
Name=BoxPackage Name=BoxPackage (Install just)
Exec=boxpackage Exec=boxpackage
Icon=boxpackage Icon=boxpackage
Terminal=True Terminal=True