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
|
||||
|
||||
# size of the tomb used to store qtox settings
|
||||
TOMB_TOX_SIZE_MB=128
|
||||
TOMB_TOX_SIZE_MB=32
|
||||
|
||||
# Tomb containing tox bootstrap
|
||||
TOMB_TOX_BOOTSTRAP_SIZE_MB=10
|
||||
|
||||
# Tomb containing zeronet
|
||||
TOMB_ZERONET_CONFIG_SIZE_MB=10
|
||||
TOMB_ZERONET_DATA_SIZE_MB=512
|
||||
TOMB_ZERONET_DATA_SIZE_MB=32
|
||||
|
||||
function create_ram_disk {
|
||||
ramdisk_size_mb=$1
|
||||
|
@ -584,7 +584,9 @@ function setup_amnesic_data {
|
|||
fi
|
||||
fi
|
||||
ln -s /media/${tomb_name} /var/log
|
||||
if [ -d /var/log_base ]; then
|
||||
cp -rp /var/log_base/* /media/${tomb_name}
|
||||
fi
|
||||
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
||||
else
|
||||
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
||||
|
@ -633,7 +635,9 @@ function setup_amnesic_data {
|
|||
fi
|
||||
fi
|
||||
ln -s /media/${tomb_name} /var/lib/zeronet
|
||||
if [ -d /var/lib/zeronet_base ]; then
|
||||
cp -rp /var/lib/zeronet_base/* /media/${tomb_name}
|
||||
fi
|
||||
echo "${tomb_name} tomb created" >> $INSTALL_LOG
|
||||
else
|
||||
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
||||
|
@ -648,7 +652,9 @@ function setup_amnesic_data {
|
|||
fi
|
||||
fi
|
||||
ln -s /media/${tomb_name} /var/lib/tox-bootstrapd
|
||||
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
|
||||
else
|
||||
echo "WARNING: ${tomb_name} tomb not found" >> $INSTALL_LOG
|
||||
|
|
Loading…
Reference in New Issue