time for the first testbuild with nanodesk-installer-gxm
This commit is contained in:
parent
a00f01e4b1
commit
879d8ea922
2 changed files with 10 additions and 3 deletions
|
@ -136,8 +136,8 @@ exec-gparted() {
|
|||
|
||||
exec-nanodesk-installer() {
|
||||
# run the installer within xterm
|
||||
#xterm -e /bin/bash -c "pkexec /usr/sbin/nanodesk-installer $1 || echo 'pkexec auth failed' >> $ERRORFILE"
|
||||
xterm -e /bin/bash -c "pkexec mc || echo 'pkexec auth failed' >> $ERRORFILE"
|
||||
xterm -e /bin/bash -c "pkexec /usr/sbin/nanodesk-installer $1 true || echo 'pkexec auth failed' >> $ERRORFILE"
|
||||
#xterm -e /bin/bash -c "pkexec mc || echo 'pkexec auth failed' >> $ERRORFILE"
|
||||
#xterm -e /bin/bash -c "pkexec mc || echo 'pkexec auth failed' >> $ERRORFILE"
|
||||
#xterm -e /bin/bash -c "pkexec 'false ' ; echo $? ; echo 'Please press enter to continue...' ; read"
|
||||
}
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
### this is just a hobby, nothing serious. i know the debian installer and other
|
||||
### exist, but i wanted to try some handcrafted installation.
|
||||
|
||||
if [ -n "$2" ] && [ "$2" == true ]
|
||||
then
|
||||
GXMINSTALLER=true
|
||||
else
|
||||
GXMINSTALLER=false
|
||||
fi
|
||||
|
||||
CHROOTCMD="chroot /mnt/"
|
||||
ERRORFILE="/tmp/nanodesk-installer.error"
|
||||
|
@ -46,8 +52,9 @@ function message() {
|
|||
}
|
||||
|
||||
error () {
|
||||
message error "ERROR!"
|
||||
echo "Error at: $MESSAGE" >> $ERRORFILE
|
||||
message error "ERROR!"
|
||||
test "$GXMINSTALLER" == true && read -p "Press [ENTER] to continue..."
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue