Compare commits

..

8 Commits

Author SHA1 Message Date
e4ab44a856 better cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 16:56:31 +03:00
64ef46fe41 notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 16:49:41 +03:00
cacb0086c4 ...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 16:47:02 +03:00
1c144c744b fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 16:40:45 +03:00
7eadc28df2 ...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 16:38:41 +03:00
3c5c150edf ...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 16:27:08 +03:00
42c9d19cac ...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 14:26:13 +03:00
12ba2fc0a8 fixes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-10-31 14:17:35 +03:00
3 changed files with 22 additions and 3 deletions

View File

@ -68,9 +68,13 @@ FORCE:
%.config: %/config.example
# NOTE: this will edit the config either if it does not exist or if it
# is the same as the example...
config.global: config.global.example
@ [ ! -e "$@" ] \
&& cat "$<" > "$@" \
|| cmp --silent "$<" "$@" \
&& cp -p "$<" "$@" \
&& touch "$<" \
&& $(EDITOR) "$@" \
|| true
@ -132,7 +136,19 @@ dev: $(DEV_CTs)
clean:
-rm -rf \
*/staging \
*/traefik
*/traefik \
*/config.last-run
.PHONY: clean-interfaces
clean-interfaces: /etc/network/interfaces.orig
# NOTE: this may need 'ifreload -a' to take effect...
cp "$<" "$(subst .orig,,$<)"
.PHONY: clean-all
clean-all: clean
-rm -rf \
config.global

View File

@ -162,7 +162,7 @@ export EDITOR=nano
Download the [`bootstrap.sh`](./scripts/bootstrap.sh) script and execute it:
```shell
curl 'https://raw.githubusercontent.com/flynx/proxmox-utils/refs/heads/master/scripts/bootstrap.sh' | sudo bash
curl -O 'https://raw.githubusercontent.com/flynx/proxmox-utils/refs/heads/master/scripts/bootstrap.sh' && sudo bash bootstrap.sh
```
_It is recommended to review the script/code before starting._

View File

@ -158,6 +158,9 @@ if xreadYes "# Create bridges?" BRIDGES ; then
fi
fi
# interfaces.orig: backup...
[ -e "${INTERFACES}.orig" ] \
|| @ cp "${INTERFACES}"{,.orig}
@ cp "$INTERFACES"{,.bak}
@ cp "$INTERFACES"{,.new}