Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
0c851d8e
Commit
0c851d8e
authored
Feb 25, 2015
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for debomatic.architecture = system - use dpkg-architecture the get it
parent
5e000d58
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
debomatic-webui/lib/config.coffee
debomatic-webui/lib/config.coffee
+8
-2
debomatic-webui/views/header.ejs
debomatic-webui/views/header.ejs
+1
-1
No files found.
debomatic-webui/lib/config.coffee
View file @
0c851d8e
...
...
@@ -37,8 +37,8 @@ config.debomatic.jsonfile = "/var/log/debomatic-json.log"
Web template configuration
Title and description for the header
###
config
.
web
.
debomatic
.
architecture
=
"
amd64"
config
.
web
.
title
=
"Deb-o-Matic
"
+
config
.
web
.
debomatic
.
architecture
config
.
web
.
debomatic
.
architecture
=
"
system"
# or amd64, i386, ...
config
.
web
.
title
=
"Deb-o-Matic
"
###
Admin email and name to show in the home page.
...
...
@@ -164,6 +164,12 @@ try
crypto
.
createHash
(
"sha256"
)
.
update
(
config
.
debomatic
.
path
)
.
digest
(
"hex"
)
if
config
.
web
.
debomatic
.
architecture
==
"system"
check
=
"dpkg-architecture -qDEB_BUILD_ARCH"
require
(
"child_process"
).
exec
check
,
(
error
,
stdout
,
stderr
)
->
config
.
web
.
debomatic
.
architecture
=
stdout
.
trim
()
module
.
exports
=
config
catch
err
...
...
debomatic-webui/views/header.ejs
View file @
0c851d8e
...
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<head>
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"/images/favicon.png"
/>
<title><
%=
web
.
title
%
></title>
<title><
%=
web
.
title
%
>
<
%=
web
.
debomatic
.
architecture
%
>
</title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
href=
"/external_libs/bootstrap-3.2.0/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"/external_libs/bootstrap-3.2.0/css/bootstrap-theme.min.css"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment