mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-27 05:42:14 +00:00
Compare commits
No commits in common. "e4ab44a8569fb1bcbdf28847dba6eb678b135d55" and "a6b6a778e723c3f3767bc655621bde2f0a077e60" have entirely different histories.
e4ab44a856
...
a6b6a778e7
20
Makefile
20
Makefile
@ -68,13 +68,9 @@ FORCE:
|
|||||||
%.config: %/config.example
|
%.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
|
config.global: config.global.example
|
||||||
@ [ ! -e "$@" ] \
|
@ [ ! -e "$@" ] \
|
||||||
|| cmp --silent "$<" "$@" \
|
&& cat "$<" > "$@" \
|
||||||
&& cp -p "$<" "$@" \
|
|
||||||
&& touch "$<" \
|
|
||||||
&& $(EDITOR) "$@" \
|
&& $(EDITOR) "$@" \
|
||||||
|| true
|
|| true
|
||||||
|
|
||||||
@ -136,19 +132,7 @@ dev: $(DEV_CTs)
|
|||||||
clean:
|
clean:
|
||||||
-rm -rf \
|
-rm -rf \
|
||||||
*/staging \
|
*/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:
|
Download the [`bootstrap.sh`](./scripts/bootstrap.sh) script and execute it:
|
||||||
```shell
|
```shell
|
||||||
curl -O 'https://raw.githubusercontent.com/flynx/proxmox-utils/refs/heads/master/scripts/bootstrap.sh' && sudo bash bootstrap.sh
|
curl 'https://raw.githubusercontent.com/flynx/proxmox-utils/refs/heads/master/scripts/bootstrap.sh' | sudo bash
|
||||||
```
|
```
|
||||||
|
|
||||||
_It is recommended to review the script/code before starting._
|
_It is recommended to review the script/code before starting._
|
||||||
|
|||||||
@ -158,9 +158,6 @@ if xreadYes "# Create bridges?" BRIDGES ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# interfaces.orig: backup...
|
|
||||||
[ -e "${INTERFACES}.orig" ] \
|
|
||||||
|| @ cp "${INTERFACES}"{,.orig}
|
|
||||||
@ cp "$INTERFACES"{,.bak}
|
@ cp "$INTERFACES"{,.bak}
|
||||||
@ cp "$INTERFACES"{,.new}
|
@ cp "$INTERFACES"{,.new}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user