Move apt update to own file

This commit is contained in:
Stian Buch Larsen 2015-07-30 18:21:38 +02:00
parent 0fece1b914
commit 09f8ae55a5
2 changed files with 5 additions and 4 deletions

View file

@ -3,9 +3,6 @@ if [ ! -d /opt/headphones/.git ]; then
/sbin/setuser abc git clone https://github.com/rembo10/headphones.git /opt/headphones
else
cd /opt/headphones
/sbin/setuser abc git pull
/sbin/setuser abc git pull
fi
#chown -R abc:abc /opt/headphones
apt-get update -qq
apt-get --only-upgrade install -yqq ffmpeg

4
init/25_update_apt.sh Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
apt-get update -qq
apt-get --only-upgrade install -yqq ffmpeg