mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
fix conflicts (#299)
This commit is contained in:
parent
98942db83b
commit
dbd3a97408
5
lib.sh
5
lib.sh
@ -44,18 +44,13 @@ UNIXUSER_PROFILE="/home/$UNIXUSER/.bash_profile"
|
||||
ROOT_PROFILE="/root/.bash_profile"
|
||||
# MARIADB
|
||||
SHUF=$(shuf -i 25-29 -n 1)
|
||||
<<<<<<< HEAD
|
||||
MARIADB_PASS=$(tr -dc "a-zA-Z0-9@#*=" < /dev/urandom | fold -w "$SHUF" | head -n 1)
|
||||
NEWMARIADBPASS=$(tr -dc "a-zA-Z0-9@#*=" < /dev/urandom | fold -w "$SHUF" | head -n 1)
|
||||
[ ! -z "$NCDB" ] && NCCONFIGDB=$(grep "dbname" $NCPATH/config/config.php | awk '{print $3}' | sed "s/[',]//g")
|
||||
MYCNF=/root/.my.cnf
|
||||
[ ! -z "$MYCNFPW" ] && MARIADBMYCNFPASS=$(grep "password" $MYCNF | sed -n "/password/s/^password='\(.*\)'$/\1/p")
|
||||
=======
|
||||
PGDB_PASS=$(tr -dc "a-zA-Z0-9@#*=" < /dev/urandom | fold -w "$SHUF" | head -n 1)
|
||||
NEWPGPASS=$(tr -dc "a-zA-Z0-9@#*=" < /dev/urandom | fold -w "$SHUF" | head -n 1)
|
||||
[ ! -z "$NCDB" ] && NCCONFIGDB=$(grep "dbname" $NCPATH/config/config.php | awk '{print $3}' | sed "s/[',]//g")
|
||||
[ ! -z "$NCDBPASS" ] && NCCONFIGDBPASS=$(grep "dbpassword" $NCPATH/config/config.php | awk '{print $3}' | sed "s/[',]//g")
|
||||
>>>>>>> 59adc5c... install_if_not (#296)
|
||||
# Path to specific files
|
||||
PHPMYADMIN_CONF="/etc/apache2/conf-available/phpmyadmin.conf"
|
||||
SECURE="$SCRIPTS/setup_secure_permissions_nextcloud.sh"
|
||||
|
||||
@ -102,7 +102,6 @@ else
|
||||
exit 0
|
||||
fi
|
||||
|
||||
<<<<<<< HEAD
|
||||
# Make sure old instaces can upgrade as well
|
||||
if [ ! -f "$MYCNF" ] && [ -f /var/mysql_password.txt ]
|
||||
then
|
||||
@ -133,7 +132,8 @@ then
|
||||
exit 1
|
||||
else
|
||||
rm -f /var/mysql_password.txt
|
||||
=======
|
||||
fi
|
||||
|
||||
# Upgrade Nextcloud
|
||||
echo "Checking latest released version on the Nextcloud download server and if it's possible to download..."
|
||||
if ! wget -q --show-progress -T 10 -t 2 "$NCREPO/$STABLEVERSION.tar.bz2"
|
||||
@ -145,7 +145,6 @@ then
|
||||
exit 1
|
||||
else
|
||||
rm -f "$STABLEVERSION.tar.bz2"
|
||||
>>>>>>> 59adc5c... install_if_not (#296)
|
||||
fi
|
||||
|
||||
echo "Backing up files and upgrading to Nextcloud $NCVERSION in 10 seconds..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user