diff --git a/cbox-build.sh b/cbox-build.sh index f63cf44..383dd79 100755 --- a/cbox-build.sh +++ b/cbox-build.sh @@ -169,9 +169,13 @@ function upload2devel() find "$TMP_DIR" -type d -name '\.svn' | while read a do rm -rf "$a" 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" - ssh -F "$SSH_CONFIG_FILE" $SSH_HOST $REMOTE_COMMAND set_diff_base } @@ -185,7 +189,8 @@ function merge_from_devel() then echo echo "Applying diff ..." 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 else echo "Merging will fail - do it manually!" fi diff --git a/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh b/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh index 865a477..5787088 100755 --- a/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh +++ b/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh @@ -72,7 +72,7 @@ function config_set_value() # parameters: SettingName SettingValue { mount -o rw,remount "$CONFIG_DIR" - echo "$2" > "$CONFIG_DIR/$1" + echo -n "$2" > "$CONFIG_DIR/$1" mount -o ro,remount "$CONFIG_DIR" } @@ -88,7 +88,8 @@ function config_get_value() fi [ -z "$1" ] && error_msg 1 "empty setting name" [ ! -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() # 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) } diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs b/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs index d4e0ab5..fa3812d 100644 --- a/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs +++ b/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs @@ -15,7 +15,7 @@


diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/init_form.cs b/cryptobox.conf.d/usr/share/cryptobox/templates/init_form.cs index c028dc1..4db362b 100644 --- a/cryptobox.conf.d/usr/share/cryptobox/templates/init_form.cs +++ b/cryptobox.conf.d/usr/share/cryptobox/templates/init_form.cs @@ -11,7 +11,7 @@


- + diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/nav.cs b/cryptobox.conf.d/usr/share/cryptobox/templates/nav.cs index a1589ae..a237130 100644 --- a/cryptobox.conf.d/usr/share/cryptobox/templates/nav.cs +++ b/cryptobox.conf.d/usr/share/cryptobox/templates/nav.cs @@ -18,6 +18,8 @@ Herunterfahren +