mirror of https://git.envs.net/envs/ops.git
update makefile
This commit is contained in:
parent
fbb87fdfda
commit
7c54e2af5b
16
Makefile
16
Makefile
|
@ -11,12 +11,13 @@ RESET = $$(tput sgr0)
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@make bin etc cron fail2ban initd letsencrypt nginx ssh sysctl systemd motd znc
|
@make bin etc cron fail2ban initd letsencrypt nginx ssh sysctl systemd motd var znc
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@make clean
|
@make clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@printf "$(YELLOW)--- clean -----------------------------------------------\n$(RESET)"
|
@printf "$(YELLOW)--- clean ---------------------------------------------\n$(RESET)"
|
||||||
stow -t "$(BINDIR)" -D bin
|
stow -t "$(BINDIR)" -D bin
|
||||||
|
|
||||||
stow -t /etc/cron.d -D -d etc cron.d
|
stow -t /etc/cron.d -D -d etc cron.d
|
||||||
|
@ -30,6 +31,9 @@ clean:
|
||||||
stow -t /etc/systemd/system -D -d etc/systemd system
|
stow -t /etc/systemd/system -D -d etc/systemd system
|
||||||
stow -t /etc/update-motd.d -D -d etc update-motd.d
|
stow -t /etc/update-motd.d -D -d etc update-motd.d
|
||||||
|
|
||||||
|
stow -t /var/ -D -d var tilde
|
||||||
|
stow -t /var/ -D -d var signups_forbidden
|
||||||
|
|
||||||
@rm -fv /srv/znc/add_znc_user.sh /srv/znc/newuser.conf.template
|
@rm -fv /srv/znc/add_znc_user.sh /srv/znc/newuser.conf.template
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,6 +87,12 @@ motd:
|
||||||
@printf "$(GREEN)--- motd -----------------------------------------------\n$(RESET)"
|
@printf "$(GREEN)--- motd -----------------------------------------------\n$(RESET)"
|
||||||
stow -t /etc/update-motd.d -d etc update-motd.d
|
stow -t /etc/update-motd.d -d etc update-motd.d
|
||||||
|
|
||||||
|
var:
|
||||||
|
@printf "$(GREEN)--- var ------------------------------------------------\n$(RESET)"
|
||||||
|
git submodule update --remote --init -- var/tilde/admins
|
||||||
|
stow -t /var/ -d var tilde
|
||||||
|
stow -t /var/ -d var signups_forbidden
|
||||||
|
|
||||||
znc:
|
znc:
|
||||||
@printf "$(GREEN)--- znc ------------------------------------------------\n$(RESET)"
|
@printf "$(GREEN)--- znc ------------------------------------------------\n$(RESET)"
|
||||||
@install -m 755 srv/znc/add_znc_user.sh /srv/znc
|
@install -m 755 srv/znc/add_znc_user.sh /srv/znc
|
||||||
|
@ -111,6 +121,8 @@ nuke:
|
||||||
/etc/systemd/system/ifconfigme.service /etc/systemd/system/thelounge.service /etc/systemd/system/znc.service
|
/etc/systemd/system/ifconfigme.service /etc/systemd/system/thelounge.service /etc/systemd/system/znc.service
|
||||||
@rm -fv /etc/update-motd.d/*
|
@rm -fv /etc/update-motd.d/*
|
||||||
|
|
||||||
|
@rm -rfv /var/tilde /var/signups_forbidden /var/banned_emails.txt
|
||||||
|
|
||||||
@rm -fv /srv/znc/add_znc_user.sh /srv/znc/newuser.conf.template
|
@rm -fv /srv/znc/add_znc_user.sh /srv/znc/newuser.conf.template
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue