mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-26 21:32:05 +00:00
Compare commits
8 Commits
a6b6a778e7
...
e4ab44a856
| Author | SHA1 | Date | |
|---|---|---|---|
| e4ab44a856 | |||
| 64ef46fe41 | |||
| cacb0086c4 | |||
| 1c144c744b | |||
| 7eadc28df2 | |||
| 3c5c150edf | |||
| 42c9d19cac | |||
| 12ba2fc0a8 |
20
Makefile
20
Makefile
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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._
|
||||
|
||||
@ -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}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user