mirror of
https://github.com/casjaysdevdocker/mysql
synced 2024-11-24 11:23:08 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/root/docker/setup/05-custom.sh
This commit is contained in:
parent
6bb0712abc
commit
9561acbebb
@ -31,6 +31,7 @@ PHPMYADMIN_VERSION="${PHPMYADMIN_VERSION:-$(curl -q -LSsf https://api.github.com
|
|||||||
PHPMYADMIN_DOWNLOAD_URL="https://files.phpmyadmin.net/phpMyAdmin/${PHPMYADMIN_VERSION}/phpMyAdmin-${PHPMYADMIN_VERSION}-all-languages.zip"
|
PHPMYADMIN_DOWNLOAD_URL="https://files.phpmyadmin.net/phpMyAdmin/${PHPMYADMIN_VERSION}/phpMyAdmin-${PHPMYADMIN_VERSION}-all-languages.zip"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Main script
|
# Main script
|
||||||
|
echo "Installing phpmyadmin from $PHPMYADMIN_DOWNLOAD_URL"
|
||||||
[ -e "/etc/my.cnf" ] && rm -Rf "/etc/my.cnf"
|
[ -e "/etc/my.cnf" ] && rm -Rf "/etc/my.cnf"
|
||||||
[ -d "$PHPMYADMIN_WWW_ROOT" ] && rm -Rf "$PHPMYADMIN_WWW_ROOT"
|
[ -d "$PHPMYADMIN_WWW_ROOT" ] && rm -Rf "$PHPMYADMIN_WWW_ROOT"
|
||||||
if curl -q -LSsf "$PHPMYADMIN_DOWNLOAD_URL" -o "/tmp/phpmyadmin.zip"; then
|
if curl -q -LSsf "$PHPMYADMIN_DOWNLOAD_URL" -o "/tmp/phpmyadmin.zip"; then
|
||||||
@ -45,6 +46,7 @@ if curl -q -LSsf "$PHPMYADMIN_DOWNLOAD_URL" -o "/tmp/phpmyadmin.zip"; then
|
|||||||
symlink "/etc/phpmyadmin/config.php" "$PHPMYADMIN_WWW_ROOT/config.inc.php"
|
symlink "/etc/phpmyadmin/config.php" "$PHPMYADMIN_WWW_ROOT/config.inc.php"
|
||||||
chown -Rf $WWW_USER "$PHPMYADMIN_WWW_ROOT"
|
chown -Rf $WWW_USER "$PHPMYADMIN_WWW_ROOT"
|
||||||
find "$PHPMYADMIN_WWW_ROOT" -type -d -exec chmod -f 777 {} \;
|
find "$PHPMYADMIN_WWW_ROOT" -type -d -exec chmod -f 777 {} \;
|
||||||
|
echo "phpmyadmin has been installed to $PHPMYADMIN_WWW_ROOT"
|
||||||
else
|
else
|
||||||
echo "Failed to install phpMyAdmin" >&2
|
echo "Failed to install phpMyAdmin" >&2
|
||||||
exitCode=1
|
exitCode=1
|
||||||
|
Loading…
Reference in New Issue
Block a user