|
From: <abe...@us...> - 2017-07-01 13:31:25
|
Revision: 8420
http://sourceforge.net/p/astlinux/code/8420
Author: abelbeck
Date: 2017-07-01 13:31:24 +0000 (Sat, 01 Jul 2017)
Log Message:
-----------
acme, acme-client wrapper, limit '--issue' use to requiring the '--dns' option, the only general solution for AstLinux
Modified Paths:
--------------
branches/1.0/package/acme/acme-client.sh
Modified: branches/1.0/package/acme/acme-client.sh
===================================================================
--- branches/1.0/package/acme/acme-client.sh 2017-06-30 17:40:12 UTC (rev 8419)
+++ branches/1.0/package/acme/acme-client.sh 2017-07-01 13:31:24 UTC (rev 8420)
@@ -78,10 +78,18 @@
echo "acme-client: The $1 option has been disabled."
}
+issue_without_dns()
+{
+ echo "acme-client: The '--issue' option also requires the '--dns' option."
+}
+
special_arg_handler()
{
- local arg skip IFS
+ local arg skip issue dns IFS
+ issue=0
+ dns=0
+
IFS='~' # expand command-line args using the unique 'tilde' character
for arg in $*; do
skip=0
@@ -98,6 +106,10 @@
no_op_arg "$arg" ; skip=1 ;;
--auto-upgrade)
no_op_arg "$arg" ; skip=1 ;;
+ --issue)
+ issue=1 ;;
+ --dns)
+ dns=1 ;;
esac
if [ $skip -eq 1 ]; then
return 0
@@ -104,6 +116,11 @@
fi
done
+ if [ $issue -eq 1 -a $dns -ne 1 ]; then
+ issue_without_dns
+ return 0
+ fi
+
return 1
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|