mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
only move fake-hwclock.data if it's not already a symlink
take out rclone specific logic out of here and move into rclone_archive
This commit is contained in:
@@ -33,25 +33,19 @@ if [ ! -e "/mutable/etc" ]
|
||||
then
|
||||
mkdir -p /mutable/etc
|
||||
fi
|
||||
if [ -e "/etc/fake-hwclock.data" ]
|
||||
|
||||
if [ ! -L "/etc/fake-hwclock.data" ] && [ -e "/etc/fake-hwclock.data" ]
|
||||
then
|
||||
echo "Moving fake-hwclock data"
|
||||
cp /etc/fake-hwclock.data /mutable/etc/fake-hwclock.data
|
||||
rm /etc/fake-hwclock.data
|
||||
mv /etc/fake-hwclock.data /mutable/etc/fake-hwclock.data
|
||||
ln -s /mutable/etc/fake-hwclock.data /etc/fake-hwclock.data
|
||||
fi
|
||||
|
||||
# Move rclone configs if it exists so we can write to it
|
||||
# Create a configs directory for others to use
|
||||
if [ ! -e "/mutable/configs" ]
|
||||
then
|
||||
mkdir -p /mutable/configs
|
||||
fi
|
||||
if [ -e "/root/.config/rclone/rclone.conf" ]
|
||||
then
|
||||
echo "Moving rclone configs"
|
||||
mv /root/.config/rclone /mutable/configs
|
||||
ln -s /mutable/configs/rclone /root/.config/rclone
|
||||
fi
|
||||
|
||||
# Move /var/spool to /tmp
|
||||
rm -rf /var/spool
|
||||
|
||||
Reference in New Issue
Block a user