chown to _apt only if user exists
This commit is contained in:
parent
3cefb720d6
commit
a450c426dd
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ mkdir -p ${LOCAL_APT}/etc/
|
|||
mkdir -p ${LOCAL_APT}/var/lib/dpkg
|
||||
touch ${LOCAL_APT}/var/lib/dpkg/status
|
||||
touch ${LOCAL_APT}/etc/trusted.gpg
|
||||
chown _apt ${LOCAL_APT} -R
|
||||
id _apt > /dev/null 2>&1 && chown _apt ${LOCAL_APT} -R
|
||||
|
||||
cat << EOF > ${LOCAL_APT}/etc/apt.conf
|
||||
Dir::State "${LOCAL_APT}/var/lib/apt";
|
||||
|
|
@ -115,7 +115,7 @@ EOF
|
|||
rm -rf PACKAGES/$PACKAGE
|
||||
mkdir PACKAGES/$PACKAGE
|
||||
cd PACKAGES/$PACKAGE
|
||||
chown _apt .
|
||||
id _apt > /dev/null 2>&1 && chown _apt .
|
||||
|
||||
#Get package and uncompress it
|
||||
apt-get update -c $LOCAL_APT/etc/apt.conf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue