1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

Add aliases-add subcommand to chasquid-util

This commit is contained in:
Thor77
2019-10-19 00:19:39 +02:00
committed by Alberto Bertogli
parent 9dea372d96
commit 8d910fc84d
2 changed files with 61 additions and 0 deletions

View File

@@ -80,4 +80,13 @@ if [ "$C" != "hostname: \"$HOSTNAME\"" ]; then
exit 1
fi
if r aliases-add alias2@domain target > /dev/null; then
ALIAS=$(grep alias2 .config/domains/domain/aliases)
if [ "$ALIAS" != "alias2: target" ]; then
echo alias-add failed
echo output: "$ALIAS"
exit 1
fi
fi
success