mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Merge branch 'pr/34'
This commit is contained in:
commit
db8b4ed21e
613 changed files with 18898 additions and 7319 deletions
|
@ -247,7 +247,7 @@ if [ "x$(id -u)" != 'x0' ]; then
|
|||
fi
|
||||
|
||||
# Checking admin user account
|
||||
if [ ! -z "$(grep ^admin: /etc/passwd /etc/group)" ] && [ -z "$force" ]; then
|
||||
if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ -z "$force" ]; then
|
||||
echo 'Please remove admin user account before proceeding.'
|
||||
echo 'If you want to do it automatically run installer with -f option:'
|
||||
echo -e "Example: bash $0 --force\n"
|
||||
|
@ -473,6 +473,17 @@ echo "deb http://$RHOST/$codename/ $codename vesta" > $apt/vesta.list
|
|||
wget $CHOST/deb_signing.key -O deb_signing.key
|
||||
apt-key add deb_signing.key
|
||||
|
||||
# Installing jessie backports
|
||||
if [ "$release" -eq 8 ]; then
|
||||
if [ ! -e /etc/apt/apt.conf ]; then
|
||||
echo 'Acquire::Check-Valid-Until "false";' >> /etc/apt/apt.conf
|
||||
fi
|
||||
if [ ! -e /etc/apt/sources.list.d/backports.list ]; then
|
||||
echo "deb http://archive.debian.org/debian jessie-backports main" >\
|
||||
/etc/apt/sources.list.d/backports.list
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Backup #
|
||||
|
@ -1286,7 +1297,7 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" = 'yes' ]; then
|
|||
mv -f /home/admin $vst_backups/home/ >/dev/null 2>&1
|
||||
rm -f /tmp/sess_* >/dev/null 2>&1
|
||||
fi
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" = 'yes' ]; then
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ]; then
|
||||
groupdel admin > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue