-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Story#12674: delete ui components and update packaging
- Loading branch information
Benaissa BENARBIA
committed
May 27, 2024
1 parent
16b3722
commit 8b99847
Showing
414 changed files
with
152 additions
and
44,612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
MODULES="$1" | ||
VERSION="$2" | ||
|
||
echo "$MODULES" | ||
echo "$VERSION" | ||
|
||
|
||
# Check if VERSION and MODULES environment variables are set | ||
if [ -z "$VERSION" ] || [ -z "$MODULES" ]; then | ||
echo "ERROR: VERSION or MODULES environment variables are not set." | ||
exit 1 | ||
fi | ||
|
||
# Split the modules list by comma into an array | ||
IFS=',' read -r -a modules_array <<< "$MODULES" | ||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
cd "$DIR" | ||
#Rpm packaging | ||
for MODULE in "${modules_array[@]}"; do | ||
echo "Packaging module: $MODULE" | ||
# Call make passing module and version as parameters | ||
make -f "Makefile-fronts" rpm NAME="$MODULE" VERSION="$VERSION" | ||
done | ||
|
||
|
||
#Deb Packaging | ||
for MODULE in "${modules_array[@]}"; do | ||
echo "Packaging module: $MODULE" | ||
# Call make passing module and version as parameters | ||
make -f "Makefile-fronts" deb NAME="$MODULE" VERSION="$VERSION" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
chown vitamui:vitamui -R /vitamui/data/identity/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# After first install | ||
#if [ $1 -eq 1 ] ; then | ||
# Ensure rights for vitamui service file system | ||
chown vitamui:vitamui -R /vitamui/*/identity/ | ||
chown vitamui:vitamui /vitamui/ /vitamui/* | ||
chmod 0555 /vitamui/ /vitamui/* | ||
chmod 0750 /vitamui/*/* | ||
|
||
# Initial installation | ||
systemctl preset vitamui-identity.service #>/dev/null 2>&1 || : | ||
#fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rm -R /vitamui/data/identity/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
systemctl daemon-reload #>/dev/null 2>&1 || : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
getent group vitamui >/dev/null || groupadd -g 4000 vitamui | ||
getent passwd vitamui >/dev/null || useradd -u 4000 -g 4000 -s /bin/bash -c "vitamui user for rsc" vitamui | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Init vitamui system group | ||
getent group vitamui >/dev/null || groupadd -g 4000 vitamui | ||
|
||
# Init vitamui system user | ||
getent passwd vitamui >/dev/null || useradd -u 4000 -g 4000 -s /bin/bash -c "vitamui service user" vitamui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#if [ $1 -eq 0 ] ; then | ||
# Package removal, not upgrade | ||
systemctl --no-reload disable vitamui-identity.service #> /dev/null 2>&1 || : | ||
systemctl stop vitamui-identity.service #> /dev/null 2>&1 || : | ||
#fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CMD_LINE_ARGS=-Dvitam.config.folder="/vitamui/conf/identity/" -Dvitamui.templates.folder="/vitamui/conf/identity/templates/" -jar "/vitamui/app/identity/__JAR_FILE__" --spring.config.additional-location="/vitamui/conf/identity/application.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
JAVA_OPTS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=vitamui-identity service | ||
After=network.target | ||
After=syslog.target | ||
After=vitam-consul.service | ||
|
||
[Service] | ||
Type=simple | ||
EnvironmentFile=/vitamui/conf/identity/sysconfig/java_opts | ||
EnvironmentFile=/vitamui/conf/identity/sysconfig/cmd_line_args | ||
ExecStart=/usr/bin/env java $JAVA_OPTS $CMD_LINE_ARGS | ||
User=vitamui | ||
Group=vitamui | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.