@@ -5,20 +5,20 @@ if [ ! -e "/usr/local/hestia/data/users/admin" ]; then
55 exit
66fi
77
8- # upgrade routines goes here
8+ # Upgrade routines go here
99
1010# Load hestia.conf
1111source /usr/local/hestia/conf/hestia.conf
1212
1313# Set version(s)
1414pma_v=' 4.8.5'
1515
16- # Upgrade phpmyadmin
16+ # Upgrade phpMyAdmin
1717if [ " $DB_SYSTEM " = ' mysql' ]; then
1818 # Display upgrade information
1919 echo " Upgrade phpMyAdmin to v$pma_v ..."
2020
21- # Download latest phpmyadmin release
21+ # Download latest phpMyAdmin release
2222 wget --quiet https://files.phpmyadmin.net/phpMyAdmin/$pma_v /phpMyAdmin-$pma_v -all-languages.tar.gz
2323
2424 # Unpack files
@@ -34,18 +34,18 @@ if [ "$DB_SYSTEM" = 'mysql' ]; then
3434 sed -i " s|define('CONFIG_DIR', '');|define('CONFIG_DIR', '/etc/phpmyadmin/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
3535 sed -i " s|define('TEMP_DIR', './tmp/');|define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
3636
37- # Create temporary folder and change permission
37+ # Create temporary folder and change permissions
3838 if [ ! -d /usr/share/phpmyadmin/tmp ]; then
3939 mkdir /usr/share/phpmyadmin/tmp
4040 chmod 777 /usr/share/phpmyadmin/tmp
4141 fi
4242
43- # Clear Up
43+ # Clean up
4444 rm -fr phpMyAdmin-$pma_v -all-languages
4545 rm -f phpMyAdmin-$pma_v -all-languages.tar.gz
4646fi
4747
48- # Add amd64 to repositorys to prevent notifications - https://goo.gl/hmsSV7
48+ # Add amd64 to repositories to prevent notifications - https://goo.gl/hmsSV7
4949if ! grep -q ' amd64' /etc/apt/sources.list.d/nginx.list; then
5050 sed -i s/deb/" deb [arch=amd64]" /g /etc/apt/sources.list.d/nginx.list
5151fi
0 commit comments