remove deprecation warnings from dev-setup
@@ -22,9 +22,9 @@ storedir=$2
echo targetdir=$targetdir
echo storedir=$storedir
-$shieldcomm create backend localdev $shieldbackend
+$shieldcomm create-backend localdev $shieldbackend
echo "backend created"
-target=$($shieldcomm create target <<MEEP0 | $jqcomm .uuid
+target=$($shieldcomm create-target <<MEEP0 | $jqcomm .uuid
{
"agent": "127.0.0.1:5444",
"endpoint": "{\"base_dir\":\"${targetdir}\",\"bsdtar\":\"bsdtar\",\"exclude\":\"var/*.db\"}",
@@ -36,7 +36,7 @@ MEEP0 )
#target=$($jqcomm .uuid <<<$target)
echo "target=$target"
-store=$( $shieldcomm create store <<MEEP1 | $jqcomm .uuid
+store=$( $shieldcomm create-store <<MEEP1 | $jqcomm .uuid
{
"endpoint": "{\"base_dir\":\"${storedir}\",\"bsdtar\":\"bsdtar\"}",
"name": "DevStore",
@@ -46,7 +46,7 @@ store=$( $shieldcomm create store <<MEEP1 | $jqcomm .uuid
MEEP1 )
echo "store=$store"
-policy=$( $shieldcomm create retention policy <<MEEP2 | $jqcomm .uuid
+policy=$( $shieldcomm create-retention policy <<MEEP2 | $jqcomm .uuid
{
"expires": 31536000,
"name": "DevPolicy",
@@ -55,7 +55,7 @@ policy=$( $shieldcomm create retention policy <<MEEP2 | $jqcomm .uuid
MEEP2 )
echo "policy=$policy"
-schedule=$( $shieldcomm create schedule <<MEEP3 | $jqcomm .uuid
+schedule=$( $shieldcomm create-schedule <<MEEP3 | $jqcomm .uuid
{
"name": "DevSched",
"summary": "A Test Schedule",
@@ -64,7 +64,7 @@ schedule=$( $shieldcomm create schedule <<MEEP3 | $jqcomm .uuid
MEEP3 )
echo "schedule=$schedule"
-$shieldcomm create job <<MEEP4
+$shieldcomm create-job <<MEEP4
{
"name": "DevJob",
"paused": true,
