Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ffho-packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Freifunk Hochstift
ffho-packages
Commits
ba0582d3
Commit
ba0582d3
authored
8 years ago
by
Karsten Böddeker
Browse files
Options
Downloads
Patches
Plain Diff
ffho-site-generate: fix upgrade script
parent
e813b29c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ffho/ffho-site-generate/luasrc/lib/gluon/upgrade/005-set-site-config
+1
-3
1 addition, 3 deletions
...ite-generate/luasrc/lib/gluon/upgrade/005-set-site-config
with
1 addition
and
3 deletions
ffho/ffho-site-generate/luasrc/lib/gluon/upgrade/005-set-site-config
+
1
−
3
View file @
ba0582d3
...
...
@@ -5,9 +5,7 @@ local json = require 'luci.json'
local
site_code
=
require
(
'gluon.site_config'
).
site_code
local
tools
=
require
'gluon.site_generate'
local
template
=
io.open
(
'/lib/gluon/site-select/template.json'
,
'r'
)
local
config
=
template
:
read
(
"*a"
)
default
:
close
()
local
config
=
io.open
(
'/lib/gluon/site-select/template.json'
):
read
(
'*a'
)
local
groups
=
tools
.
get_config
(
'/lib/gluon/site-select/groups.json'
)
local
sites
=
tools
.
get_config
(
'/lib/gluon/site-select/sites.json'
)
local
currentsite
=
uci
:
get
(
"currentsite"
,
"current"
,
"name"
)
...
...
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