Check that directories exist
This commit is contained in:
parent
c0c4325eff
commit
c2bc1073b5
|
@ -56,14 +56,14 @@ MESH_AMNESIC=/root/.amnesic
|
||||||
TOMB_LOG_SIZE_MB=32
|
TOMB_LOG_SIZE_MB=32
|
||||||
|
|
||||||
# size of the tomb used to store qtox settings
|
# size of the tomb used to store qtox settings
|
||||||
TOMB_TOX_SIZE_MB=128
|
TOMB_TOX_SIZE_MB=32
|
||||||
|
|
||||||
# Tomb containing tox bootstrap
|
# Tomb containing tox bootstrap
|
||||||
TOMB_TOX_BOOTSTRAP_SIZE_MB=10
|
TOMB_TOX_BOOTSTRAP_SIZE_MB=10
|
||||||
|
|
||||||
# Tomb containing zeronet
|
# Tomb containing zeronet
|
||||||
TOMB_ZERONET_CONFIG_SIZE_MB=10
|
TOMB_ZERONET_CONFIG_SIZE_MB=10
|
||||||
TOMB_ZERONET_DATA_SIZE_MB=512
|
TOMB_ZERONET_DATA_SIZE_MB=32
|
||||||
|
|
||||||
function create_ram_disk {
|
function create_ram_disk {
|
||||||
ramdisk_size_mb=$1
|
ramdisk_size_mb=$1
|
||||||
|
@ -584,7 +584,9 @@ function setup_amnesic_data {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
ln -s /media/${tomb_name} /var/log
|
ln -s /media/${tomb_name} /var/log
|
||||||
cp -rp /var/log_base/* /media/${tomb_name}
|
if [ -d /var/log_base ]; then
|
||||||
|
cp -rp /var/log_base/* /media/${tomb_name}
|
||||||
|
fi
|
||||||
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
||||||
else
|
else
|
||||||
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
||||||
|
@ -633,7 +635,9 @@ function setup_amnesic_data {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
ln -s /media/${tomb_name} /var/lib/zeronet
|
ln -s /media/${tomb_name} /var/lib/zeronet
|
||||||
cp -rp /var/lib/zeronet_base/* /media/${tomb_name}
|
if [ -d /var/lib/zeronet_base ]; then
|
||||||
|
cp -rp /var/lib/zeronet_base/* /media/${tomb_name}
|
||||||
|
fi
|
||||||
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
||||||
else
|
else
|
||||||
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
||||||
|
@ -648,7 +652,9 @@ function setup_amnesic_data {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
ln -s /media/${tomb_name} /var/lib/tox-bootstrapd
|
ln -s /media/${tomb_name} /var/lib/tox-bootstrapd
|
||||||
cp -rp /var/lib/tox-bootstrapd_base/* /media/${tomb_name}
|
if [ -d /var/lib/tox-bootstrapd_base ]; then
|
||||||
|
cp -rp /var/lib/tox-bootstrapd_base/* /media/${tomb_name}
|
||||||
|
fi
|
||||||
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
||||||
else
|
else
|
||||||
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
||||||
|
|
Loading…
Reference in New Issue