From 09f8ae55a54c57c67796126671558a8fcb96489e Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Thu, 30 Jul 2015 18:21:38 +0200 Subject: [PATCH] Move apt update to own file --- init/20_update.sh | 5 +---- init/25_update_apt.sh | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 init/25_update_apt.sh diff --git a/init/20_update.sh b/init/20_update.sh index ce46231..0d49097 100755 --- a/init/20_update.sh +++ b/init/20_update.sh @@ -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 diff --git a/init/25_update_apt.sh b/init/25_update_apt.sh new file mode 100644 index 0000000..73ff990 --- /dev/null +++ b/init/25_update_apt.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +apt-get update -qq +apt-get --only-upgrade install -yqq ffmpeg