Changeset 6746


Ignore:
Timestamp:
Jan 31, 2018, 12:01:12 PM (19 months ago)
Author:
Juanma
Message:

Removed su commands

Location:
zero-center/trunk/fuentes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zero-center/trunk/fuentes/debian/changelog

    r6596 r6746  
     1zero-center (1:2.14) xenial; urgency=medium
     2
     3  * Removed "su" commands
     4
     5 -- Juanma Navarro Mañez <juanma1980@gmail.com>  Wed, 31 Jan 2018 12:00:10 +0100
     6
    17zero-center (1:2.13) xenial; urgency=high
    28
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-installer

    r6308 r6746  
    9090                                echo "________________________________________________________________________________" >> /tmp/zero-installer.log
    9191                                echo " " >> /tmp/zero-installer.log
    92                                 su -c "notify-send -t 8000 -u normal -i zero-center 'Zero-Installer' '$NAME_PACK $MSG_FINISH_INSTALLED /tmp/zero-installer.log'" $USER
     92                                notify-send -t 8000 -u normal -i zero-center 'Zero-Installer' "$NAME_PACK $MSG_FINISH_INSTALLED /tmp/zero-installer.log"
    9393                                exit 0
    9494                        else
     
    9898                                echo "________________________________________________________________________________" >> /tmp/zero-installer.log
    9999                                echo " " >> /tmp/zero-installer.log
    100                                 su -c 'notify-send -t 8000 -u normal -i zero-center "Zero-Installer" "$NAME_PACK $MSG_FINISH_UNINSTALLED /tmp/zero-installer.log" ' $USER
     100                                notify-send -t 8000 -u normal -i zero-center "Zero-Installer" "$NAME_PACK $MSG_FINISH_UNINSTALLED /tmp/zero-installer.log"
    101101                                exit 1
    102102                        fi
     
    142142                                echo "________________________________________________________________________________" >> /tmp/zero-installer.log
    143143                                echo " " >> /tmp/zero-installer.log
    144                                 su -c "notify-send -t 8000 -u normal -i zero-center 'Zero-Installer' '$2 $MSG_FINISH_SYSTEM1 $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log'" $USER
     144                                notify-send -t 8000 -u normal -i zero-center 'Zero-Installer' "$2 $MSG_FINISH_SYSTEM1 $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log"
    145145                        else
    146146                                echo "Zero-center-------Your package $2 has NOT been $FINISHED in your system"
     
    149149                                echo "________________________________________________________________________________" >> /tmp/zero-installer.log
    150150                                echo " " >> /tmp/zero-installer.log
    151                                 su -c "notify-send -t 8000 -u normal -i zero-center 'Zero-Installer' '$2 $MSG_FINISH_ERROR $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log'" $USER
     151                                notify-send -t 8000 -u normal -i zero-center 'Zero-Installer' "$2 $MSG_FINISH_ERROR $FINISHED $MSG_FINISH_SYSTEM /tmp/zero-installer.log"
    152152                                exit 1
    153153                        fi
     
    224224                if [ "$?" != "0" ]; then
    225225                        msg=$"Impossible to install $2, it dont exists in your repositories, abort zero-installer command"
    226                         su -c "notify-send -t 10000 -u normal -i zero-center 'Zero-Installer' \"${msg}\"" $USER
     226                        notify-send -t 10000 -u normal -i zero-center 'Zero-Installer' "${msg}"
    227227                        echo "Your package $2 don't exists in your repositories, abort zero-installer command"
    228228                        echo "Your package $2 don't exists in your repositories, abort zero-installer command" >> /tmp/zero-installer.log
    229                         su -c "notify-send -t 10000 -u normal -i zero-center 'Zero-Installer' 'Your package $2 DO NOT EXISTS in your repositories, abort zero-installer command, and you can view the log in /tmp/zero-installer.log. If you cannot resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER
     229                        notify-send -t 10000 -u normal -i zero-center 'Zero-Installer' "Your package $2 DO NOT EXISTS in your repositories, abort zero-installer command, and you can view the log in /tmp/zero-installer.log. If you cannot resolve the problem please contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums"
    230230                        exit 1
    231231                fi
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-reinstall

    r5095 r6746  
    8080                        echo "Package $PACKAGE_NAME has been installed, Congratulations"
    8181                        zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG" $ZEN_BUTTON_OK > /dev/null 2>&1 &
    82                         su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG'" $USER
     82                        notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' "$PACKAGE_NAME $MSG_FINISH_INSTALLED $INSTALL_LOG"
    8383                        exit 0
    8484                else
     
    8686                        echo "$MSG_FINISH_ERROR"
    8787                        zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG" $ZEN_BUTTON_OK > /dev/null 2>&1 &
    88                         su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG'" $USER
     88                        notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' "$PACKAGE_NAME $MSG_FINISH_ERROR $INSTALL_LOG"
    8989                        exit 1
    9090                fi
  • zero-center/trunk/fuentes/install-files/usr/bin/zero-repos-update

    r2108 r6746  
    5656                echo "________________________________________________________________________________" >> "$LOG"
    5757                echo " " >> "$LOG"
    58                 su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Lliurex-Update' '$MSG_UPDATEDINFO'" $USER
     58#               su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Lliurex-Update' '$MSG_UPDATEDINFO'" $USER
     59                notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Lliurex-Update' "$MSG_UPDATEDINFO"
    5960        }
    6061
Note: See TracChangeset for help on using the changeset viewer.