+3
-5
@@ -21,9 +21,7 @@ mkdir -p "$LOGBOOK_DIR"
|
||||
chmod -R 775 "$INSTANCE_DIR"
|
||||
|
||||
# --- 3) Global passwords ---
|
||||
# ELOG expects base64-encoded strings in config for global passwords
|
||||
# "testpassword" -> echo -n testpassword | base64
|
||||
PW_B64="testpassword"
|
||||
PASSWORD="me1T.2jUUqQNa1wNuey9zNBOmOa4eILOaPb.ZSZjpn4"
|
||||
|
||||
# --- 4) Write config ---
|
||||
cat > "$INSTANCE_DIR/elogd.cfg" <<EOF
|
||||
@@ -42,8 +40,8 @@ Subdir = demo
|
||||
Preset Author = robot
|
||||
|
||||
# Auth for write/admin only
|
||||
Write password=$PW_B64
|
||||
Admin password=$PW_B64
|
||||
Write password=$PASSWORD
|
||||
Admin password=$PASSWORD
|
||||
|
||||
# Guests can read freely
|
||||
Guest menu commands = List, Find, Last 10, Help
|
||||
|
||||
Reference in New Issue
Block a user