Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
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
Package 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
guillaum.pin
nexus
Commits
c84d6853
Commit
c84d6853
authored
9 months ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
Fix live_exam_os starting script issue
parent
07660085
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
live_exam_os/Dockerfile
+1
-1
1 addition, 1 deletion
live_exam_os/Dockerfile
live_exam_os/config/live-exam-hook
+16
-13
16 additions, 13 deletions
live_exam_os/config/live-exam-hook
with
17 additions
and
14 deletions
live_exam_os/Dockerfile
+
1
−
1
View file @
c84d6853
...
...
@@ -51,7 +51,7 @@ ADD ${config_dir}/isolinux_stdmenu.cfg config/includes.binary/isolinux/stdmenu.c
# script hook ran at boot time (install system wide cert and firewall)
ADD
${config_dir}/live-exam-hook config/includes.chroot/lib/live/config/9999-custom
# update server destination from docker's variable (all others IP are banned)
RUN
echo
"
F
irewall
${
server_ip
}
\n
"
>>
config/includes.chroot/lib/live/config/9999-custom
RUN
echo
"
f
irewall
${
server_ip
}
\n
"
>>
config/includes.chroot/lib/live/config/9999-custom
# install wifi template
ADD
${config_dir}/WIFI.nmconnection config/includes.chroot/etc/NetworkManager/system-connections/
...
...
This diff is collapsed.
Click to expand it.
live_exam_os/config/live-exam-hook
+
16
−
13
View file @
c84d6853
...
...
@@ -10,11 +10,8 @@
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
#set -e
# This function is here just for reference as it is not used.
Config
()
add_nexus_certs
()
{
if
[
!
-e
/etc/ssl/certs/nexus-server.pem
]
&&
[
-e
/usr/share/ca-certificates/nexus-server/nexus-server.crt
]
then
...
...
@@ -23,15 +20,21 @@ Config ()
fi
}
Firewall
()
disable_screen_blanking
()
{
echo
"xset s off"
>
/etc/X11/Xsession.d/99xsetoff
}
firewall
()
{
ufw default deny incoming
ufw default deny outgoing
#
ufw allow in from any port 68 to any port 67 proto udp
#
ufw allow from any to any port 22
ufw allow out from any to
$1
port 1025:65535 proto tcp
ufw allow out from any to
$1
port 1025:65535 proto udp
ufw
enable
ufw default deny incoming
ufw default deny outgoing
ufw allow
in
from any port 68 to any port 67 proto udp
#
ufw allow from any to any port 22
ufw allow out from any to
$1
port 1025:65535 proto tcp
ufw allow out from any to
$1
port 1025:65535 proto udp
ufw
enable
}
#Config
#add_nexus_certs
disable_screen_blanking
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