Posts by mcgyver83

    Hi, since some months I had the feeling that when I enter Update Management page items shown are always the same.
    Now I had the time to check and yesterday I execute the update without error, blank Update Management page after update.
    This morning I enter the page and I still see same updates as yesterday.
    As example:

    Here the log: log

    Hi all,
    coming back to this topic.
    I still have the same issue: "Remte Mount" + "Shared folder" make directories in the file system that are owned by root.
    I want to use the remote mounted drive (usb drive attached to router) for backup and I don't want that backup files are owned by root.

    How can I change ownership for folder inside the "Remote Mount"?

    I made changes suggested.

    Now I have the same issue with another job.
    Mail message is:

    /var/lib/openmediavault/cron.d/userdefined-fee68f4c-8454-49b2-9d8e-56c8bc8d631a: 31: /var/lib/openmediavault/cron.d/userdefined-fee68f4c-8454-49b2-9d8e-56c8bc8d631a: source: not found

    The command (runned as user `pi`) in gui is:

    I need to run the job with `pi` user to keep permission and ownership (and because I cannot see why I should use sudo).

    Right now I still receive the mail message with `source` command complain

    sudo: ok, I can remove it using "root" as user in scheduled job. It comes from the manual command I used to test it.
    sh: ok, in fact I can execute it instead of using sh.

    parameter "5": this could be an issue. Same script is used to refresh different libraries in plex; I'll try putting it inside the script just to see if it solves the issue

    Hi all, with OMV4 I was used to use the LetsEncrypt plugin to renew/refresh my SSL cert used to secure OMV gui access.
    To be honest I cannot understand how to keep using letsencrypt to keep my cert renewed

    No hints?
    Who is using the `source` command to execute scheduled job?

    I see that `userdefined-014d8449-8363-4241-a6ee-5904509cea43` script has `#!/bin/sh -l`, I changed my sh script with this line but I still have the issue

    I assume your default shell does not support the command source to load other scripts.

    I'm not using source in my script and I cannot find this command in the lines automatically added to cron.d/userdefined script.

    What do you mean?
    Anyone has any hints?

    Hi, I add a detail: also all others sh script I have cause the "source not found" mail.
    I execute the command configured in "Scheduled jobs" no message in the console

    Hi, I configured a scheduled jobs with this command with the "send email output" enabled:

    sudo sh /home/pi/raspberry-mcg/script/docker/plex/ 5

    each time it is executed I receive an email with this message

    /var/lib/openmediavault/cron.d/userdefined-014d8449-8363-4241-a6ee-5904509cea43: 31: /var/lib/openmediavault/cron.d/userdefined-014d8449-8363-4241-a6ee-5904509cea43: source: not found

    Going deeper

    cat /var/lib/openmediavault/cron.d/userdefined-014d8449-8363-4241-a6ee-5904509cea43
    #!/bin/sh -l
    # This file is auto-generated by openmediavault (
    # WARNING: Do not edit this file, your changes will get lost.
    sudo sh /home/pi/raspberry-mcg/script/docker/plex/ 5


    cat /home/pi/raspberry-mcg/script/docker/plex/
    docker exec plex /usr/lib/plexmediaserver/Plex\ Media\ Scanner -s $1
    echo "Lib number $1 refreshed at $(date '+%Y-%m-%d')";

    Basically each time I execute e bash script that run a command against a docker container and after prints the date.

    I receive above email (I also receive the email with the echo output).