Skip to content

Commit e10fc41

Browse files
committed
rollback: check if rollback is possible. default hostname
1 parent 963bc73 commit e10fc41

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎system/cuos/rollback.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ set -x
44

55
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
66

7+
if [[ ! -f "/system_next.json" ]]; then
8+
echo "Rollback not possible. No previous system."
9+
exit 1
10+
fi
11+
712
VIRT_TYPE="$(systemd-detect-virt)"
813
if [[ "${VIRT_TYPE}" = "lxc" ]]; then
914
"${SCRIPT_DIR}/lxc-rollback.sh" "$@"

‎system/cuos/system_default.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"hostname": "sd-genesis-os",
2+
"hostname": "cuos-system",
33
"update_registry": "gitlab.triovega.com:4567/securitygateway",
44
"update_registry_user": "securitygateway",
55
"update_registry_password": "",

0 commit comments

Comments
 (0)