mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
universe repository check
This commit is contained in:
parent
6b590a6c93
commit
59695acd10
1 changed files with 7 additions and 0 deletions
|
@ -447,6 +447,13 @@ fi
|
||||||
apt-get -y upgrade
|
apt-get -y upgrade
|
||||||
check_result $? 'apt-get upgrade failed'
|
check_result $? 'apt-get upgrade failed'
|
||||||
|
|
||||||
|
# Checking universe repository
|
||||||
|
if [[ ${release:0:2} -gt 16 ]]; then
|
||||||
|
if [ -z "$(grep universe /etc/apt/sources.list)" ]; then
|
||||||
|
add-apt-repository -y universe
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Installing nginx repo
|
# Installing nginx repo
|
||||||
apt=/etc/apt/sources.list.d
|
apt=/etc/apt/sources.list.d
|
||||||
echo "deb http://nginx.org/packages/mainline/ubuntu/ $codename nginx" \
|
echo "deb http://nginx.org/packages/mainline/ubuntu/ $codename nginx" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue