forked from radien-org/radien-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DevInitializer.sh
36 lines (34 loc) · 3.96 KB
/
DevInitializer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#to run this shell script you need jq (is a lightweight and flexible command-line JSON processor)
# you can find jq at https://github.com/stedolan/jq
# its available in package manager like brew (https://brew.sh/)
if ! command -v jq &> /dev/null
then
echo "to run this shell script you need jq (is a lightweight and flexible command-line JSON processor)"
echo "you can find jq at https://github.com/stedolan/jq"
echo "its available in package manager like brew (https://brew.sh/)"
echo "so if you have brew installed you can install jq with 'brew install jq'"
exit
fi
echo '/-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\'
echo '|/---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\|'
echo '|| $$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$$$\ $$\ $$\ $$$$$$\ $$\ $$\ $$$$$$\$$$$$$$$\$$$$$$\ $$$$$$\ $$\ $$$$$$\$$$$$$$$\ $$$$$$$$\ $$$$$$$\ ||'
echo '|| $$ __$$\ $$ __$$\ $$ __$$\ \_$$ _|$$ _____|$$$\ $$ | $$ __$$\ $$ _____|$$ | $$ | \_$$ _|$$$\ $$ |\_$$ _\__$$ __\_$$ _|$$ __$$\ $$ | \_$$ _\____$$ |$$ _____|$$ __$$\ ||'
echo '|| $$ | $$ |$$ / $$ |$$ | $$ | $$ | $$ | $$$$\ $$ | $$ | $$ |$$ | $$ | $$ | $$ | $$$$\ $$ | $$ | $$ | $$ | $$ / $$ |$$ | $$ | $$ / $$ | $$ | $$ | ||'
echo '|| $$$$$$$ |$$$$$$$$ |$$ | $$ | $$ | $$$$$\ $$ $$\$$ | $$ | $$ |$$$$$\ \$$\ $$ | $$ | $$ $$\$$ | $$ | $$ | $$ | $$$$$$$$ |$$ | $$ | $$ / $$$$$\ $$$$$$$ | ||'
echo '|| $$ __$$ |$$ __$$ |$$ | $$ | $$ | $$ __| $$ \$$$$ | $$ | $$ |$$ __| \$$\$$ / $$ | $$ \$$$$ | $$ | $$ | $$ | $$ __$$ |$$ | $$ | $$ / $$ __| $$ __$$ | ||'
echo '|| $$ | $$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ |\$$$ | $$ | $$ |$$ | \$$$ / $$ | $$ |\$$$ | $$ | $$ | $$ | $$ | $$ |$$ | $$ | $$ / $$ | $$ | $$ | ||'
echo '|| $$ | $$ |$$ | $$ |$$$$$$$ |$$$$$$\ $$$$$$$$\ $$ | \$$ | $$$$$$$ |$$$$$$$$\ \$ / $$$$$$\ $$ | \$$ |$$$$$$\ $$ | $$$$$$\ $$ | $$ |$$$$$$$$\$$$$$$\$$$$$$$$\ $$$$$$$$\ $$ | $$ | ||'
echo '|| \__| \__|\__| \__|\_______/ \______|\________|\__| \__| \_______/ \________| \_/ \______|\__| \__|\______| \__| \______|\__| \__|\________\______\________|\________|\__| \__| ||'
echo '|\---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------/|'
echo '| Author: Bruno Gama - Rethink |'
echo '| Author: Nuno Santana - Rethink |'
echo '\-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------/'
echo "--> Going to initialize all the minimum requirements for development purposes."
sh ./rd-ms-tenantmanagement/TenantDevInitializer.sh
sh ./rd-ms-permissionmanagement/ActionDevInitializer.sh
sh ./rd-ms-permissionmanagement/ResourceDevInitializer.sh
sh ./rd-ms-permissionmanagement/PermissionDevInitializer.sh
sh ./rd-ms-rolemanagement/RoleDevInitializer.sh
sh ./rd-ms-rolemanagement/TenantRoleAssociationDevInitializer.sh
echo "--> All done! Ready to start development!"