15 lines
505 B
Bash
15 lines
505 B
Bash
#!/bin/bash
|
|
export LD_LIBRARY_PATH="/opt/IDriveForLinux/bin/Idrivelib/dependencies/python/lib:$LD_LIBRARY_PATH"
|
|
|
|
# Seed empty Kubernetes PVC volume on first startup
|
|
if [ ! -f /opt/IDriveForLinux/idriveIt/idrivecrontab.json ]; then
|
|
echo "Initializing persistent volume in /opt/IDriveForLinux/idriveIt..."
|
|
cp -a /opt/IDriveForLinux/idriveIt.orig/* /opt/IDriveForLinux/idriveIt/
|
|
fi
|
|
|
|
# Start background cron service for scheduled backups
|
|
cron
|
|
|
|
# Keep container running in background
|
|
tail -f /dev/null
|