Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4793884
init
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
784 B
Referenced Files
None
Subscribers
None
init
View Options
#!/bin/bash
set
-e
# generate a password for root.
ROOT_PASSWORD
=
$(
pwgen -c -n -1
12
)
echo
"root:
$ROOT_PASSWORD
"
|
chpasswd
echo
User: root Password:
$ROOT_PASSWORD
# start supervisord
/usr/bin/supervisord
supervisorctl start sshd
appStart
()
{
/etc/init.d/openfire start
tail -F /usr/share/openfire/logs/info.log
}
appHelp
()
{
echo
"Available options:"
echo
" app:start - Start the openfire server (default)"
echo
" app:help - Displays the help"
echo
" [command] - Execute the specified linux command eg. bash."
}
case
"
$1
"
in
app:start
)
appStart
;;
app:help
)
appHelp
;;
*
)
if
[
-x
$1
]
;
then
$1
else
prog
=
$(
which
$1
)
if
[
-n
"
${
prog
}
"
]
;
then
shift
1
$prog
$@
else
appHelp
fi
fi
;;
esac
exit
0
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Fri, Feb 28, 22:47 (23 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2448011
Default Alt Text
init (784 B)
Attached To
Mode
rDO Docker image for Openfire
Attached
Detach File
Event Timeline
Log In to Comment