Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
W
Wordpress Bin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ebiwd
Wordpress Bin
Commits
a0378a8f
Commit
a0378a8f
authored
Aug 20, 2020
by
Sandeep Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VF Groups - Local build cleanup
parent
e12f2392
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
scripts/setup_group.sh
scripts/setup_group.sh
+14
-1
No files found.
scripts/setup_group.sh
View file @
a0378a8f
#!/bin/bash
set
-x
#
set -x
# determine root of repo
ROOT
=
$(
cd
$(
dirname
${
0
}
)
/../.. 2>/dev/null
&&
pwd
-P
)
;
cd
${
ROOT
}
;
...
...
@@ -285,8 +285,21 @@ if ! [[ $who_id ]] ; then
echo
"Taxonomy of WP_GROUP_WHO_TAXONOMY_SLUG doesn't exists, please check if correct taxonomy added in .env file & rerun setup"
;
exit
1
;
fi
# WHAT Term
what_id
=
"
$(
wp term list embl_taxonomy
--slug
=
${
WP_GROUP_WHAT_TAXONOMY_SLUG
}
--field
=
term_taxonomy_id
)
"
if
!
[[
what_id
]]
;
then
echo
"Taxonomy of WP_GROUP_WHAT_TAXONOMY_SLUG doesn't exists, please check if correct taxonomy added in .env file & rerun setup"
;
exit
1
;
fi
# WHERE Term
where_id
=
"
$(
wp term list embl_taxonomy
--slug
=
${
WP_GROUP_WHERE_TAXONOMY_SLUG
}
--field
=
term_taxonomy_id
)
"
if
!
[[
where_id
]]
;
then
echo
"Taxonomy of WP_GROUP_WHERE_TAXONOMY_SLUG doesn't exists, please check if correct taxonomy added in .env file & rerun setup"
;
exit
1
;
fi
wp option update embl_taxonomy_term_who
$who_id
wp option update embl_taxonomy_term_what
$what_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment