Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
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
Model registry
Operate
Environments
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
croft1
floodlight
Commits
9e176b81
Commit
9e176b81
authored
11 years ago
by
Rob Adams
Browse files
Options
Downloads
Patches
Plain Diff
Some packaging tweaks
parent
306f0c95
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/control/postinst
+6
-4
6 additions, 4 deletions
debian/control/postinst
debian/control/prerm
+2
-8
2 additions, 8 deletions
debian/control/prerm
src/main/resources/apps/simpleforwarding.json
+2
-2
2 additions, 2 deletions
src/main/resources/apps/simpleforwarding.json
with
10 additions
and
14 deletions
debian/control/postinst
+
6
−
4
View file @
9e176b81
...
...
@@ -2,6 +2,7 @@
NAME
=
floodlight
KEYSTORE
=
/etc/floodlight/auth_credentials.jceks
KEYSTOREPASS
=
/etc/floodlight/conf.d/01-keystorepass.properties
case
"
$1
"
in
configure
)
...
...
@@ -16,17 +17,18 @@ case "$1" in
chown
-R
syslog:adm /var/log/floodlight
chown
-R
$NAME
:
$NAME
/var/lib/floodlight
if
[
!
-f
/etc/floodlight/auth_credentials.jceks
]
;
then
if
[
!
-f
$KEYSTORE
]
;
then
KSPASS
=
`
dd
if
=
/dev/urandom
bs
=
1
count
=
32 2>/dev/null |
base64
-w
0 | rev |
cut
-b
2- | rev
`
umask
0077
echo
"org.sdnplatform.sync.internal.SyncManager.keyStorePassword=
$KSPASS
"
>
\
/etc/floodlight/conf.d/01-keystorepass.properties
$KEYSTOREPASS
authtool
-a
CHALLENGE_RESPONSE
\
-ks
$KEYSTORE
\
-kp
$KSPASS
chown
$NAME
:
$NAME
$KEYSTORE
chown
$NAME
:
$NAME
$KEYSTORE
$KEYSTOREPASS
fi
service rsyslog re
load
service rsyslog re
start
service floodlight restart
;;
...
...
This diff is collapsed.
Click to expand it.
debian/control/prerm
+
2
−
8
View file @
9e176b81
...
...
@@ -3,17 +3,11 @@
NAME
=
floodlight
case
"
$1
"
in
purge
)
rm
-f
/etc/floodlight/auth_credentials.jceks
rm
-f
/etc/floodlight/conf.d/01-keystorepass.properties
rm
-rf
/var/lib/floodlight/SyncDB
;;
remove
)
service floodlight stop
service floodlight stop
||
true
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear
)
purge|
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear
)
;;
*
)
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/apps/simpleforwarding.json
+
2
−
2
View file @
9e176b81
{
"name"
:
"simpleforwarding"
,
"modules"
:
[
"net.floodlightcontroller.counter.CounterStore"
,
"net.floodlightcontroller.storage.memory.MemoryStorageSource"
,
"net.floodlightcontroller.counter.CounterStore"
,
"net.floodlightcontroller.storage.memory.MemoryStorageSource"
,
"net.floodlightcontroller.core.internal.FloodlightProvider"
,
"net.floodlightcontroller.threadpool.ThreadPool"
,
"net.floodlightcontroller.devicemanager.internal.DeviceManagerImpl"
,
...
...
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