|
@@ -50,15 +50,14 @@ check_hestia_demo_mode
|
|
|
if [ "$type" = "pma" ] || [ "$type" = "PMA" ] || [ "$type" = "phpmyadmin" ]; then
|
|
if [ "$type" = "pma" ] || [ "$type" = "PMA" ] || [ "$type" = "phpmyadmin" ]; then
|
|
|
# Set database editor friendly name
|
|
# Set database editor friendly name
|
|
|
db_editor="phpMyAdmin"
|
|
db_editor="phpMyAdmin"
|
|
|
-
|
|
|
|
|
# Set new alias value
|
|
# Set new alias value
|
|
|
$BIN/v-change-sys-config-value 'DB_PMA_ALIAS' "$alias"
|
|
$BIN/v-change-sys-config-value 'DB_PMA_ALIAS' "$alias"
|
|
|
|
|
|
|
|
# Replace old configuration files and update alias
|
|
# Replace old configuration files and update alias
|
|
|
- if [ -e "/etc/apache2/conf.d/phpmyadmin.conf" ]; then
|
|
|
|
|
- rm -f /etc/apache2/conf.d/phpmyadmin.conf
|
|
|
|
|
- cp -f $HESTIA_INSTALL_DIR/pma/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
|
|
|
|
|
- sed -i "s|%pma_alias%|$alias|g" /etc/apache2/conf.d/phpmyadmin.conf
|
|
|
|
|
|
|
+ if [ -e "/etc/apache2/conf.d/phpmyadmin.inc" ]; then
|
|
|
|
|
+ rm -f /etc/apache2/conf.d/phpmyadmin.inc
|
|
|
|
|
+ cp -f $HESTIA_INSTALL_DIR/pma/apache.conf /etc/apache2/conf.d/phpmyadmin.inc
|
|
|
|
|
+ sed -i "s|%pma_alias%|$alias|g" /etc/apache2/conf.d/phpmyadmin.inc
|
|
|
|
|
|
|
|
# Restart services
|
|
# Restart services
|
|
|
$HESTIA/bin/v-restart-service apache2
|
|
$HESTIA/bin/v-restart-service apache2
|
|
@@ -83,10 +82,10 @@ if [ "$type" = "pga" ] || [ "$type" = "PGA" ] || [ "$type" = "phppgadmin" ]; the
|
|
|
$BIN/v-change-sys-config-value 'DB_PGA_ALIAS' "$alias"
|
|
$BIN/v-change-sys-config-value 'DB_PGA_ALIAS' "$alias"
|
|
|
|
|
|
|
|
# Replace old configuration files and update alias
|
|
# Replace old configuration files and update alias
|
|
|
- if [ -e "/etc/apache2/conf.d/phppgadmin.conf" ]; then
|
|
|
|
|
- rm -f /etc/apache2/conf.d/phppgadmin.conf
|
|
|
|
|
- cp -f $HESTIA_INSTALL_DIR/pga/phppgadmin.conf /etc/apache2/conf.d/phppgadmin.conf
|
|
|
|
|
- sed -i "s|%pga_alias%|$alias|g" /etc/apache2/conf.d/phppgadmin.conf
|
|
|
|
|
|
|
+ if [ -e "/etc/apache2/conf.d/phppgadmin.inc" ]; then
|
|
|
|
|
+ rm -f /etc/apache2/conf.d/phppgadmin.inc
|
|
|
|
|
+ cp -f $HESTIA_INSTALL_DIR/pga/phppgadmin.conf /etc/apache2/conf.d/phppgadmin.inc
|
|
|
|
|
+ sed -i "s|%pga_alias%|$alias|g" /etc/apache2/conf.d/phppgadmin.inc
|
|
|
|
|
|
|
|
# Restart services
|
|
# Restart services
|
|
|
$HESTIA/bin/v-restart-service apache2
|
|
$HESTIA/bin/v-restart-service apache2
|