Jump to content

mythrandir52

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by mythrandir52

  1. I need some help.

     

    I was using one of the other owncloud docker containers before but i like the one by gfjardim as it allows me to seperate the appdata and the userdata.  The problem i am having is that i have scripts and process that drop files in the file system.  Owncloud isnt picking them up.  I the other contain i would just execute the following command

     


    sudo -u www-data php occ  files:scan --all


    The issue is sudo isnt installed in the container and if i install it the command will just vanish with the next update.  the problem is the command needs to be executed by the owner of the config.php

     

     

    the other option was crontab but it isnt installed either.

     

    https://doc.owncloud.org/server/7.0/admin_manual/configuration/background_jobs_configuration.html

     

    also how do i enable https?

     

    HTTPS is enforced on port 8000 and HTTP on port 8001.

     

    The cron job is already installed:

     

    root@9f74932cb573:/# ps ax

      PID TTY      STAT  TIME COMMAND

        1 ?        Ss    0:00 /usr/bin/python3 -u /sbin/my_init

      19 ?        S      0:00 /usr/bin/runsvdir -P /etc/service

      20 ?        Ss    0:00 runsv cron

      21 ?        Ss    0:00 runsv syslog-forwarder

      22 ?        Ss    0:00 runsv nginx

      23 ?        Ss    0:00 runsv owncloud

      24 ?        Ss    0:00 runsv php-fpm

      25 ?        S      0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf

      26 ?        S      0:00 /usr/sbin/cron -f

      27 ?        Ss    0:02 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)                   

      28 ?        S      0:00 tail -F -n 0 /var/log/syslog

      29 ?        S      0:00 nginx: worker process                 

      30 ?        S      0:03 nginx: worker process                 

      31 ?        S      0:03 nginx: worker process                 

      32 ?        S      0:03 nginx: worker process                 

      33 ?        S      0:00 php-fpm: pool www                                                     

      34 ?        S      0:00 php-fpm: pool www                                                     

      35 ?        S      0:00 php-fpm: pool www                                                     

    1018 ?        Ss    0:00 /bin/bash

    1039 ?        R+    0:00 ps ax

    root@9f74932cb573:/# crontab -l -u nobody

    */15 * * * * /usr/bin/php -f /var/www/owncloud/cron.php >/dev/null 2>&1

     

     

    I made a mistake i was using the Bungy owncloud as it allowed me to map the config to one share the apps to another and the user data to a third.

     

     

    Container Volume

    host path

     

    /var/www/html/apps

    /mnt/cache/appdata/owncloud/apps

     

    /var/www/html/config

    /mnt/cache/appdata/owncloud/config

     

    /var/www/html/data

    /mnt/cache/appdata/owncloud/data

     

  2. I need some help.

     

    I was using one of the other owncloud docker containers before but i like the one by gfjardim as it allows me to seperate the appdata and the userdata.  The problem i am having is that i have scripts and process that drop files in the file system.  Owncloud isnt picking them up.  I the other contain i would just execute the following command

     


    sudo -u www-data php occ  files:scan --all


    The issue is sudo isnt installed in the container and if i install it the command will just vanish with the next update.  the problem is the command needs to be executed by the owner of the config.php

     

     

    the other option was crontab but it isnt installed either.

     

    https://doc.owncloud.org/server/7.0/admin_manual/configuration/background_jobs_configuration.html

     

    also how do i enable https?

×
×
  • Create New...