Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nut-upsd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Docker
nut-upsd
Commits
59bcea16
Commit
59bcea16
authored
5 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Need to support `.users` files or no one can log in
parent
069735e6
Branches
Branches containing commit
No related tags found
1 merge request
!1
MVP
Pipeline
#1846
passed
5 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
context/entrypoint
+1
-0
1 addition, 0 deletions
context/entrypoint
with
3 additions
and
2 deletions
README.md
+
2
−
2
View file @
59bcea16
...
@@ -6,8 +6,8 @@ provide all `nut` options without making too many compromises.
...
@@ -6,8 +6,8 @@ provide all `nut` options without making too many compromises.
## Usage
## Usage
1.
Create necessary configurations in
`./config`
;
both
`.conf`
and
`.html`
files
1.
Create necessary configurations in
`./config`
;
`.conf`
,
`.html`
, and
`.users`
are supported.
**`./config` includes sample configurations.**
files
are supported.
**`./config` includes sample configurations.**
1.
`docker-compose up -d`
1.
`docker-compose up -d`
1.
If
`MODE`
is set to
`netserver`
,
`nut`
will be available on the container's
1.
If
`MODE`
is set to
`netserver`
,
`nut`
will be available on the container's
port
`3493`
.
port
`3493`
.
...
...
This diff is collapsed.
Click to expand it.
context/entrypoint
+
1
−
0
View file @
59bcea16
...
@@ -10,6 +10,7 @@ echo "Copying configurations from ${CONFIG_SOURCE} to ${CONFIG_DEST}..."
...
@@ -10,6 +10,7 @@ echo "Copying configurations from ${CONFIG_SOURCE} to ${CONFIG_DEST}..."
find
$CONFIG_SOURCE
-name
"*.conf"
-exec
cp
'{}'
$CONFIG_DEST
\;
find
$CONFIG_SOURCE
-name
"*.conf"
-exec
cp
'{}'
$CONFIG_DEST
\;
find
$CONFIG_SOURCE
-name
"*.html"
-exec
cp
'{}'
$CONFIG_DEST
\;
find
$CONFIG_SOURCE
-name
"*.html"
-exec
cp
'{}'
$CONFIG_DEST
\;
find
$CONFIG_SOURCE
-name
"*.users"
-exec
cp
'{}'
$CONFIG_DEST
\;
echo
"Restarting services..."
echo
"Restarting services..."
...
...
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