File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ if [ "$DB_SYSTEM" = 'mysql' ]; then
3535 sed -i " s|define('TEMP_DIR', './tmp/');|define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
3636
3737 # Create temporary folder and change permission
38- mkdir /usr/share/phpmyadmin/tmp
39- chmod 777 /usr/share/phpmyadmin/tmp
38+ if [ ! -d /usr/share/phpmyadmin/tmp]; then
39+ mkdir /usr/share/phpmyadmin/tmp
40+ chmod 777 /usr/share/phpmyadmin/tmp
41+ fi
4042
4143 # Clear Up
4244 rm -fr phpMyAdmin-$pma_v -all-languages
4547
4648# Add amd64 to repositorys to prevent notifications - https://goo.gl/hmsSV7
4749if ! grep -q ' amd64' /etc/apt/sources.list.d/nginx.list; then
48- sed s/deb/" deb [arch=amd64]" /g /etc/apt/sources.list.d/nginx.list
50+ sed -i s/deb/" deb [arch=amd64]" /g /etc/apt/sources.list.d/nginx.list
4951fi
5052if ! grep -q ' amd64' /etc/apt/sources.list.d/mariadb.list; then
51- sed s/deb/" deb [arch=amd64]" /g /etc/apt/sources.list.d/mariadb.list
53+ sed -i s/deb/" deb [arch=amd64]" /g /etc/apt/sources.list.d/mariadb.list
5254fi
5355
5456# Fix named rule for AppArmor - https://goo.gl/SPqHdq
You can’t perform that action at this time.
0 commit comments