bass_rock
Dabbler
- Joined
- Jul 9, 2016
- Messages
- 13
I currently have an init script that looks like this on my zfs vol:
This script runs perfectly as root when I run it manually. When I set it up on the FreeNAS GUI for post-init startup tasks it never runs. Is this broken currently in FreeNAS 11 or have I done something wrong?
Code:
#!/bin/bash /usr/local/bin/plexdrive mount --uid=1000 --gid=1000 --cache-file=/mnt/Data/Docker/plexdrive/cache.bolt -c /mnt/Data/Docker/plexdrive -o allow_other /mnt/Data/PlexDriveEncrypted & /usr/local/bin/rclone mount plexdrive-decrypt: /mnt/Data/PlexDrive --uid=1000 --gid=1000 --allow-other & /usr/local/bin/unionfs -o cow,allow_other,direct_io,nonempty,auto_cache,sync_read,uid=1000,gid=1000 /mnt/Data/PlexDrive=RO:/mnt/Data/Media=RW /mnt/Data/NewMedia
This script runs perfectly as root when I run it manually. When I set it up on the FreeNAS GUI for post-init startup tasks it never runs. Is this broken currently in FreeNAS 11 or have I done something wrong?