Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngx_http_voms_module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Federico Fornari
ngx_http_voms_module
Commits
53851eb2
Commit
53851eb2
authored
2 years ago
by
lcappelli
Browse files
Options
Downloads
Patches
Plain Diff
Merge user-setup.sh in provide-user.sh
parent
4e93dc94
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.devcontainer/Dockerfile
+1
-3
1 addition, 3 deletions
.devcontainer/Dockerfile
.devcontainer/assets/provide-user.sh
+18
-0
18 additions, 0 deletions
.devcontainer/assets/provide-user.sh
.devcontainer/assets/user-setup.sh
+0
-23
0 additions, 23 deletions
.devcontainer/assets/user-setup.sh
with
19 additions
and
26 deletions
.devcontainer/Dockerfile
+
1
−
3
View file @
53851eb2
...
...
@@ -14,7 +14,6 @@ ENV DEV_GID ${DEV_USER_UID}
COPY
assets/provide-user.sh /docker/
COPY
assets/setup.sh /docker/
COPY
assets/user-setup.sh /docker/
COPY
assets/build-install-openresty.sh /docker/
RUN
yum update
-y
&&
\
...
...
@@ -26,5 +25,4 @@ COPY --chown=$DEV_USER:$DEV_USER assets/build-install-ngx-voms.sh /home/$DEV_USE
USER
$DEV_USER
RUN
sh /docker/build-install-openresty.sh
&&
\
sh /docker/user-setup.sh
\ No newline at end of file
RUN
sh /docker/build-install-openresty.sh
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.devcontainer/assets/provide-user.sh
+
18
−
0
View file @
53851eb2
...
...
@@ -53,6 +53,24 @@ EOF
USER_RC_PATH
=
"/home/
${
USERNAME
}
"
echo
"
${
CODESPACES_BASH
}
"
>>
"
${
USER_RC_PATH
}
/.bashrc"
cat
<<
EOF
>> "
${
USER_RC_PATH
}
/.bashrc"
if [ -f "
\$
{HOME}/openresty-env" ]; then
.
\$
{HOME}/openresty-env
fi
if [ -d
\$
{HOME}/bin ]; then
PATH=
\$
{HOME}/bin:
\$
{PATH}
fi
if [ -n "
\$
{PS1}" ]; then
echo
echo "To build and install openresty with the ngx_http_voms_module run 'build-install-ngx-voms.sh'"
echo "'nginx-httpg_no_delegation.patch' is needed in the directory where the user runs the script"
echo
fi
EOF
chown
${
USERNAME
}
:
${
USERNAME
}
"
${
USER_RC_PATH
}
/.bashrc"
echo
"Done!"
This diff is collapsed.
Click to expand it.
.devcontainer/assets/user-setup.sh
deleted
100644 → 0
+
0
−
23
View file @
4e93dc94
#!/bin/sh
# Copyright 2018-2022 Istituto Nazionale di Fisica Nucleare
# SPDX-License-Identifier: EUPL-1.2
set
-ex
cat
<<
EOF
>>
${
HOME
}
/.bashrc
if [ -f "
\$
{HOME}/openresty-env" ]; then
.
\$
{HOME}/openresty-env
fi
if [ -d
\$
{HOME}/bin ]; then
PATH=
\$
{HOME}/bin:
\$
{PATH}
fi
if [ -n "
\$
{PS1}" ]; then
echo
echo "To build and install openresty with the ngx_http_voms_module run 'build-install-ngx-voms.sh'"
echo "'nginx-httpg_no_delegation.patch' is needed in the directory where the user runs the script"
echo
fi
EOF
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment