|
@@ -181,6 +181,7 @@ fi |
|
|
log_done "Nginx configured" |
|
|
log_done "Nginx configured" |
|
|
|
|
|
|
|
|
### Setup ramFS |
|
|
### Setup ramFS |
|
|
|
|
|
set +e |
|
|
cat /etc/fstab | grep -q "ramfs" |
|
|
cat /etc/fstab | grep -q "ramfs" |
|
|
if [ $? -eq 0 ]; then |
|
|
if [ $? -eq 0 ]; then |
|
|
log_done "ramfs already setup" |
|
|
log_done "ramfs already setup" |
|
@@ -189,10 +190,9 @@ else |
|
|
cat templates/fstab | sudo tee -a /etc/fstab > /dev/null |
|
|
cat templates/fstab | sudo tee -a /etc/fstab > /dev/null |
|
|
log_done "Ramfs installed" |
|
|
log_done "Ramfs installed" |
|
|
fi |
|
|
fi |
|
|
set +e |
|
|
|
|
|
sudo mount -a |
|
|
sudo mount -a |
|
|
set -e |
|
|
|
|
|
sudo chmod 777 /var/ramfs |
|
|
sudo chmod 777 /var/ramfs |
|
|
|
|
|
set -e |
|
|
|
|
|
|
|
|
success "Install (almost) done!" |
|
|
success "Install (almost) done!" |
|
|
echo " |
|
|
echo " |
|
|