Commit 66442b73 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add back some code I cleaned out; mkdir /var/emulab/* on plab vservers.

parent c68cb936
...@@ -107,6 +107,16 @@ BEGIN ...@@ -107,6 +107,16 @@ BEGIN
require "/etc/emulab/paths.pm"; require "/etc/emulab/paths.pm";
import emulabpaths; import emulabpaths;
# Make sure these exist! They will not exist on a PLAB vserver initially.
if (! -e "$VARDIR/logs") {
mkdir("$VARDIR", 0775);
mkdir("$VARDIR/jails", 0775);
mkdir("$VARDIR/db", 0755);
mkdir("$VARDIR/logs", 0775);
mkdir("$VARDIR/boot", 0775);
mkdir("$VARDIR/lock", 0775);
}
# #
# Determine if running inside a jail. This affects the paths below. # Determine if running inside a jail. This affects the paths below.
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment