Ver Fonte

Update authLdap to 2.1.1

Girish Ramakrishnan há 6 anos atrás
pai
commit
42dd3a0422
4 ficheiros alterados com 9 adições e 5 exclusões
  1. 5 1
      CloudronManifest.json
  2. 2 2
      Dockerfile
  3. 1 1
      cron.sh
  4. 1 1
      start.sh

+ 5 - 1
CloudronManifest.json

@@ -13,7 +13,11 @@
   "icon": "logo.png",
   "addons": {
     "mysql": {},
-    "localstorage": {},
+    "localstorage": {
+        "ftp": {
+            "uid": "33/www-data"
+        }
+    },
     "sendmail": {},
     "ldap": {},
     "scheduler": {

+ 2 - 2
Dockerfile

@@ -20,13 +20,13 @@ RUN chmod +x /app/code/wp
 RUN /bin/echo -e "apache_modules:\n  - mod_rewrite" > /app/code/wp-cli.yml
 
 # Get the plugins
-RUN curl -L -o /app/code/authLdap.zip https://github.com/heiglandreas/authLdap/archive/2.1.0.zip
+RUN curl -L -o /app/code/authLdap.zip https://github.com/heiglandreas/authLdap/archive/2.1.1.zip
 # https://plugins.svn.wordpress.org/disable-wordpress-core-update/
 RUN curl -L -o /app/code/disable-wordpress-core-update.zip https://downloads.wordpress.org/plugin/disable-wordpress-core-update.zip
 # https://plugins.svn.wordpress.org/wp-mail-smtp/
 RUN curl -L -o /app/code/wp-mail-smtp.zip https://downloads.wordpress.org/plugin/wp-mail-smtp.0.10.1.zip
 
-RUN chown -R www-data:www-data /app/code
+RUN chown -R cloudron:cloudron /app/code
 
 # configure apache
 RUN rm /etc/apache2/sites-enabled/*

+ 1 - 1
cron.sh

@@ -4,4 +4,4 @@ set -eu
 
 echo "=> Run cron job"
 
-exec /usr/local/bin/gosu www-data:www-data /app/code/wp cron event run --due-now
+exec /usr/local/bin/gosu cloudron:cloudron /app/code/wp cron event run --due-now

+ 1 - 1
start.sh

@@ -165,7 +165,7 @@ EOF
     $WP --format=json option update authLDAPOptions "${ldapConfig}"
 fi
 
-chown -R www-data:www-data /app/data /run/wordpress
+chown -R cloudron:cloudron /app/data /run/wordpress
 
 echo "Starting apache"
 APACHE_CONFDIR="" source /etc/apache2/envvars