Unverified Commit 91262b6c authored by David Beniamine's avatar David Beniamine
Browse files

Do upgrade before interface settings

parent cd393c8b
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -17,6 +17,14 @@
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

DIR=`dirname $0`

if [ ! -z "$1" ] && [ "$1" == "apt" ]
then
    apt-get update
    apt-get upgrade -y
fi


cp "$DIR/fond admin.png" /home/administrateur/Documents/

cp $DIR/conky.conf /etc/conky/
@@ -25,12 +33,6 @@ $DIR/add_session_script.sh
$DIR/create_cifs_mounts.sh
$DIR/set_mime_apps.sh

if [ ! -z "$1" ] && [ "$1" == "apt" ]
then
    apt-get update
    apt-get upgrade -y
fi

if [ $(who | wc -l) -eq 1 ]
then
    poweroff