add better WP installations; small fixes

This commit is contained in:
2015-12-06 22:25:34 +01:00
parent c4b3f72b86
commit 6d342f3941
2 changed files with 4 additions and 3 deletions

View File

@@ -435,10 +435,10 @@ if [ "$ACTION" == "installwp" ]; then
fi
# Downloading wordpress
wget https://wordpress.org/latest.tar.gz
tar xfz latest.tar.gz
wget $WPDL
unzip $(basename $WPDL)
mv wordpress/* $WEBDIR
rm -r wordpress latest.tar.gz
rm -r wordpress $(basename $WPDL)
# Downloading wp-cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

View File

@@ -1,5 +1,6 @@
SYSUSER=$(whoami)
DOMAIN=panel.domain.tld
WPDL=https://de.wordpress.org/latest-de_DE.zip
# Email stuff
TOEMAIL=user@domain.tld