Standardizing round 1

This commit is contained in:
2020-02-08 13:34:58 -06:00
parent 652d7c4795
commit 49f9f6d315
7 changed files with 106 additions and 17 deletions

View File

@@ -1,12 +1,5 @@
SHELL := /bin/bash
BACKUPDIR := /usr/local/backup
INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash
compile:
${INSTALLER} -S openssl gzip tar openssh
install: compile
@echo You must specify client or server in a call to make.
client: user aether.bash
cp aether.bash /home/aether/aether.bash
@@ -19,6 +12,12 @@ client: user aether.bash
chown aether:aether /var/log/aether.log
make checkperm
compile:
@echo Nothing to do
install: compile
@echo You must specify client or server in a call to make.
server: keys scripts user ./aether-gen.bash ./aether.pub ./server-backup
bash ./aether-gen.bash
cp ./aether.pub /home/aether/.ssh/authorized_keys
@@ -45,7 +44,7 @@ node-command:
@echo MAKE SURE TO ADD THE NODE TO /usr/local/etc/Aether/nodes.list
keys:
if [ ! -f ./aether ]; then ssh-keygen -t rsa -P "" -f aether
if [ ! -f ./aether ]; then ssh-keygen -t rsa -P "" -f aether; fi
scripts: ./server-backup ./remote-backup
cp ./server-backup /root/bin
@@ -82,4 +81,4 @@ clean:
rm -Rf /usr/local/backup; fi
test:
echo bye | sftp -o IdentityFile=/home/aether/.ssh/aether aether@aninix.net
python3 -m pytest