Do upgrade before interface settings

parent cd393c8b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment