more verbose upload/diff/merge
language preselection in config_form fixed tabindex in init_form fixed obsolte developer's links removed from nav.cs
This commit is contained in:
parent
85c00b3e8f
commit
e3f4cb49e3
|
@ -169,9 +169,13 @@ function upload2devel()
|
||||||
find "$TMP_DIR" -type d -name '\.svn' | while read a
|
find "$TMP_DIR" -type d -name '\.svn' | while read a
|
||||||
do rm -rf "$a"
|
do rm -rf "$a"
|
||||||
done
|
done
|
||||||
scp -F "$SSH_CONFIG_FILE" -rpq "$TMP_DIR/." cryptobox:/tmp/mirror
|
echo "Copying local files to the cryptobox ... "
|
||||||
|
if scp -F "$SSH_CONFIG_FILE" -rpq "$TMP_DIR/." cryptobox:/tmp/mirror
|
||||||
|
then echo "Set the base for future diffs to current state ..."
|
||||||
|
ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND set_diff_base
|
||||||
|
else echo 'ERROR: copying failed!'
|
||||||
|
fi
|
||||||
rm -rf "$TMP_DIR"
|
rm -rf "$TMP_DIR"
|
||||||
ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND set_diff_base
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -185,7 +189,8 @@ function merge_from_devel()
|
||||||
then echo
|
then echo
|
||||||
echo "Applying diff ..."
|
echo "Applying diff ..."
|
||||||
ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND diff | patch -p1 -d "$TEMPLATE_DIR"
|
ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND diff | patch -p1 -d "$TEMPLATE_DIR"
|
||||||
# set the base for the next diff to present state
|
echo
|
||||||
|
echo "Set the base for future diffs to current state ..."
|
||||||
ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND set_diff_base
|
ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND set_diff_base
|
||||||
else echo "Merging will fail - do it manually!"
|
else echo "Merging will fail - do it manually!"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -72,7 +72,7 @@ function config_set_value()
|
||||||
# parameters: SettingName SettingValue
|
# parameters: SettingName SettingValue
|
||||||
{
|
{
|
||||||
mount -o rw,remount "$CONFIG_DIR"
|
mount -o rw,remount "$CONFIG_DIR"
|
||||||
echo "$2" > "$CONFIG_DIR/$1"
|
echo -n "$2" > "$CONFIG_DIR/$1"
|
||||||
mount -o ro,remount "$CONFIG_DIR"
|
mount -o ro,remount "$CONFIG_DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,7 +88,8 @@ function config_get_value()
|
||||||
fi
|
fi
|
||||||
[ -z "$1" ] && error_msg 1 "empty setting name"
|
[ -z "$1" ] && error_msg 1 "empty setting name"
|
||||||
[ ! -e "$conf_dir/$1" ] && error_msg 2 "unknown configuration value ($1)"
|
[ ! -e "$conf_dir/$1" ] && error_msg 2 "unknown configuration value ($1)"
|
||||||
cat "$conf_dir/$1"
|
# remove trailing line break
|
||||||
|
echo -n $(cat "$conf_dir/$1")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -126,7 +127,8 @@ function create_config()
|
||||||
function get_current_ip()
|
function get_current_ip()
|
||||||
# not necessarily the same as configured (necessary for validation)
|
# not necessarily the same as configured (necessary for validation)
|
||||||
{
|
{
|
||||||
ifconfig $NET_IFACE | grep "inet" | cut -d ":" -f2 | cut -d " " -f1
|
# filter the output of ifconfig and remove trailing line break
|
||||||
|
echo -n $(ifconfig $NET_IFACE | grep "inet" | cut -d ":" -f2 | cut -d " " -f1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<p><label for="language"><?cs var:Lang.Text.SelectLanguage ?></label><br/>
|
<p><label for="language"><?cs var:Lang.Text.SelectLanguage ?></label><br/>
|
||||||
<select name="language">
|
<select name="language">
|
||||||
<?cs each:item = Data.Languages ?>
|
<?cs each:item = Data.Languages ?>
|
||||||
<option value="<?cs name:item ?>" <?cs if:(item == Data.Config.Language) ?>selected="selected"<?cs /if ?>><?cs var:item ?></option>
|
<option value="<?cs name:item ?>" <?cs if:(name(item) == Data.Config.Language) ?>selected="selected"<?cs /if ?>><?cs var:item ?></option>
|
||||||
<?cs /each ?>
|
<?cs /each ?>
|
||||||
</select></p>
|
</select></p>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<p><label for="confirm"><?cs var:Lang.Text.ConfirmInitHint ?><br/>
|
<p><label for="confirm"><?cs var:Lang.Text.ConfirmInitHint ?><br/>
|
||||||
<span class="note" id="confirmtext"><?cs var:Lang.Text.ConfirmInit ?></span></label><br/>
|
<span class="note" id="confirmtext"><?cs var:Lang.Text.ConfirmInit ?></span></label><br/>
|
||||||
<input type="text" id="confirm" name="confirm" size="30" tabindex="3" maxlength="50" /></p>
|
<input type="text" id="confirm" name="confirm" size="30" tabindex="3" maxlength="50" /></p>
|
||||||
<button type="submit" name="action" value="init_do"><?cs var:Lang.Button.DoInit ?></button>
|
<button type="submit" name="action" value="init_do" tabindex="4"><?cs var:Lang.Button.DoInit ?></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
<a href="<?cs var:ScriptName ?>?action=shutdown_ask" title="Herunterfahren">Herunterfahren</a>
|
<a href="<?cs var:ScriptName ?>?action=shutdown_ask" title="Herunterfahren">Herunterfahren</a>
|
||||||
|
|
||||||
<?cs if:Data.Status.DevelopmentMode ?>
|
<?cs if:Data.Status.DevelopmentMode ?>
|
||||||
|
<!-- no longer used
|
||||||
<a href="/cgi-bin/validate.sh" title="Validation">Test-Sequenzen</a>
|
<a href="/cgi-bin/validate.sh" title="Validation">Test-Sequenzen</a>
|
||||||
<a href="/report/" title="Validierungsergebnisse">Test-Report</a>
|
<a href="/report/" title="Validierungsergebnisse">Test-Report</a>
|
||||||
|
-->
|
||||||
<?cs /if ?>
|
<?cs /if ?>
|
||||||
|
|
Loading…
Reference in a new issue