mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-27 16:17:03 +00:00
chasquid-util: Remove aliases-add subcommand
The aliases-add subcommand was added before aliases hooks were implemented and polished, it is undocumented, and the implementation is nowadays a bit brittle, has some rough edges, and adds significant code complexity to chasquid-util. AFAIK nobody is using it either (checked with some specific folks directly, and it's not very discoverable either). For all those reasons, this patch removes it.
This commit is contained in:
@@ -78,30 +78,6 @@ if ! ( echo "$C" | grep -E -q "hostname:.*\"$HOSTNAME\"" ); then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if r aliases-add alias2@domain target > /dev/null; then
|
||||
A=$(grep alias2 .config/domains/domain/aliases)
|
||||
if [ "$A" != "alias2: target" ]; then
|
||||
echo aliases-add failed
|
||||
echo output: "$A"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if r aliases-add alias2@domain target > /dev/null; then
|
||||
echo aliases-add on existing alias worked
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if r aliases-add alias3@notexist target > /dev/null; then
|
||||
echo aliases-add on non-existing domain worked
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if r aliases-add alias4@domain > /dev/null; then
|
||||
echo aliases-add without target worked
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run all the chamuyero tests.
|
||||
for i in *.cmy; do
|
||||
if ! chamuyero "$i" > "$i.log" 2>&1 ; then
|
||||
|
||||
Reference in New Issue
Block a user