Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eole-wol
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
primtux-eole
Grenoble
eole-wol
Commits
4bd42da0
Verified
Commit
4bd42da0
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Alert forbidden actions
parent
69bca546
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
wol/scripts/wakeonlanservice.sh
+5
-0
5 additions, 0 deletions
wol/scripts/wakeonlanservice.sh
wol/www/index.php
+8
-1
8 additions, 1 deletion
wol/www/index.php
with
13 additions
and
1 deletion
wol/scripts/wakeonlanservice.sh
+
5
−
0
View file @
4bd42da0
...
...
@@ -85,6 +85,11 @@ do
# Extract the pertinent part of the log
awk
'BEGIN{IN=0} /Begin host/{if($4=="'
$name
'"){IN=1}} {if(IN){print $0}} /End host/{if($4=="'
$name
'"){IN=0}}'
\
$logfile
>
$tempfile
if
[
!
-s
$tempfile
]
then
# Log file is empty, this happens when we are starting an upgrade on a specific host
cp
$logfile
$tempfile
fi
answer
$tempfile
rm
$tempfile
fi
...
...
This diff is collapsed.
Click to expand it.
wol/www/index.php
+
8
−
1
View file @
4bd42da0
...
...
@@ -126,7 +126,7 @@ if(!isset($action)){
<input
type=
"submit"
value=
"Mise à jour config"
title=
"Mettre à jour"
>
</form>
<form
action=
"index.php"
method=
"post"
>
<input
type=
"hidden"
name=
"action"
value=
"upgradeA
PT
"
>
<input
type=
"hidden"
name=
"action"
value=
"upgradeA
pt
"
>
<input
type=
"hidden"
name=
"name"
value=
"
<?php
echo
$entry
[
2
];
?>
"
>
<input
type=
"submit"
value=
"Mise à jour config + APT"
title=
"Mettre à jour + apt"
>
</form>
...
...
@@ -258,8 +258,15 @@ if(!isset($action)){
<input
type=
"submit"
value=
"Rafraichir les logs"
title=
"Rafraichir les logs"
>
</form>
<?
}
else
{
echo
"<p><strong>Action '
$action
' interdite !</strong></p>"
;
}
}
?>
<form
action=
"index.php"
method=
"post"
>
<input
type=
"submit"
value=
"Retour à l'accueil"
title=
"Retour à l'accueil"
>
</form>
<?php
}
?>
</div>
...
...
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