|
@@ -1712,14 +1712,14 @@ if [ "$mysql" = 'yes' ] || [ "$mysql8" = 'yes' ]; then
|
|
|
cp -f $HESTIA_INSTALL_DIR/phpmyadmin/config.inc.php /etc/phpmyadmin/
|
|
cp -f $HESTIA_INSTALL_DIR/phpmyadmin/config.inc.php /etc/phpmyadmin/
|
|
|
mkdir -p /var/lib/phpmyadmin/tmp
|
|
mkdir -p /var/lib/phpmyadmin/tmp
|
|
|
chmod 770 /var/lib/phpmyadmin/tmp
|
|
chmod 770 /var/lib/phpmyadmin/tmp
|
|
|
- chown root:www-data /usr/share/phpmyadmin/tmp
|
|
|
|
|
|
|
+ chown root:hestiamail /usr/share/phpmyadmin/tmp
|
|
|
|
|
|
|
|
# Set config and log directory
|
|
# Set config and log directory
|
|
|
sed -i "s|'configFile' => ROOT_PATH . 'config.inc.php',|'configFile' => '/etc/phpmyadmin/config.inc.php',|g" /usr/share/phpmyadmin/libraries/vendor_config.php
|
|
sed -i "s|'configFile' => ROOT_PATH . 'config.inc.php',|'configFile' => '/etc/phpmyadmin/config.inc.php',|g" /usr/share/phpmyadmin/libraries/vendor_config.php
|
|
|
|
|
|
|
|
# Create temporary folder and change permission
|
|
# Create temporary folder and change permission
|
|
|
chmod 770 /usr/share/phpmyadmin/tmp
|
|
chmod 770 /usr/share/phpmyadmin/tmp
|
|
|
- chown root:www-data /usr/share/phpmyadmin/tmp
|
|
|
|
|
|
|
+ chown root:hestiamail /usr/share/phpmyadmin/tmp
|
|
|
|
|
|
|
|
# Generate blow fish
|
|
# Generate blow fish
|
|
|
blowfish=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
|
|
blowfish=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
|
|
@@ -1738,7 +1738,7 @@ if [ "$mysql" = 'yes' ] || [ "$mysql8" = 'yes' ]; then
|
|
|
source $HESTIA_INSTALL_DIR/phpmyadmin/pma.sh > /dev/null 2>&1
|
|
source $HESTIA_INSTALL_DIR/phpmyadmin/pma.sh > /dev/null 2>&1
|
|
|
|
|
|
|
|
# limit access to /etc/phpmyadmin/
|
|
# limit access to /etc/phpmyadmin/
|
|
|
- chown -R root:www-data /etc/phpmyadmin/
|
|
|
|
|
|
|
+ chown -R root:hestiamail /etc/phpmyadmin/
|
|
|
chmod -R 640 /etc/phpmyadmin/*
|
|
chmod -R 640 /etc/phpmyadmin/*
|
|
|
chmod 750 /etc/phpmyadmin/conf.d/
|
|
chmod 750 /etc/phpmyadmin/conf.d/
|
|
|
fi
|
|
fi
|
|
@@ -2058,7 +2058,7 @@ if [ "$sieve" = 'yes' ]; then
|
|
|
mkdir -p $RC_CONFIG_DIR/plugins/managesieve
|
|
mkdir -p $RC_CONFIG_DIR/plugins/managesieve
|
|
|
cp -f $HESTIA_COMMON_DIR/roundcube/plugins/config_managesieve.inc.php $RC_CONFIG_DIR/plugins/managesieve/config.inc.php
|
|
cp -f $HESTIA_COMMON_DIR/roundcube/plugins/config_managesieve.inc.php $RC_CONFIG_DIR/plugins/managesieve/config.inc.php
|
|
|
ln -s $RC_CONFIG_DIR/plugins/managesieve/config.inc.php $RC_INSTALL_DIR/plugins/managesieve/config.inc.php
|
|
ln -s $RC_CONFIG_DIR/plugins/managesieve/config.inc.php $RC_INSTALL_DIR/plugins/managesieve/config.inc.php
|
|
|
- chown -R root:www-data $RC_CONFIG_DIR/
|
|
|
|
|
|
|
+ chown -R root:hestiamail $RC_CONFIG_DIR/
|
|
|
chmod 751 -R $RC_CONFIG_DIR
|
|
chmod 751 -R $RC_CONFIG_DIR
|
|
|
chmod 644 $RC_CONFIG_DIR/*.php
|
|
chmod 644 $RC_CONFIG_DIR/*.php
|
|
|
chmod 644 $RC_CONFIG_DIR/plugins/managesieve/config.inc.php
|
|
chmod 644 $RC_CONFIG_DIR/plugins/managesieve/config.inc.php
|