「🏗️」 wip: Need to fix fileEnv func to rm newline at the env

This commit is contained in:
keyzox committed 2025-03-05 20:17:37 +01:00
1 parent 834468e1bd
commit 055ccdc1df
6 files changed
+22 -15

No files matched your search

+7 -7
View File
@@ -1,14 +1,14 @@
#!/bin/sh
WP_DIR="/var/www/wordpress"
#WP_VERSION="6.7.2"
WP_VERSION="6.7.2"
#if [ -f "$WP_DIR/index.php" ]; then
# echo "Already downloaded wordpress, skipping..."
#else
# echo "Downloading Wordpress ${WP_VERSION}"
# wp --allow-root core download --version=${WP_VERSION} --path=${WP_DIR}
#fi
if [ -f "$WP_DIR/index.php" ]; then
echo "Already downloaded wordpress, skipping..."
else
echo "Downloading Wordpress ${WP_VERSION}"
wp --allow-root core download --version=${WP_VERSION} --path=${WP_DIR}
fi
if [ -f "${WP_DIR}/wp-config.php" ]; then