|
|
|
@ -1,4 +1,4 @@
|
|
|
|
#!/bin/ash
|
|
|
|
#!/bin/bash
|
|
|
|
# Ensures that configuration files for both SnapRAID and snapraid-runner are present
|
|
|
|
# Ensures that configuration files for both SnapRAID and snapraid-runner are present
|
|
|
|
# in /config. In reality, both files should be edited manually before running this
|
|
|
|
# in /config. In reality, both files should be edited manually before running this
|
|
|
|
# container to ensure correct operation.
|
|
|
|
# container to ensure correct operation.
|
|
|
|
@ -18,7 +18,7 @@ if [ ! -f /config/snapraid-runner.conf ]; then
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# test if link is made between /etc/snapraid.conf and /config/snapraid.conf, make if not
|
|
|
|
# test if link is made between /etc/snapraid.conf and /config/snapraid.conf, make if not
|
|
|
|
if [ ! -L /etc/snapraid.conf ]; then
|
|
|
|
if [ ! -L /etc/snapraid.conf ]; then
|
|
|
|
ln -s /config/snapraid.conf /etc/snapraid.conf
|
|
|
|
ln -s /config/snapraid.conf /etc/snapraid.conf
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|