6186995745
This commit adds a helm chart to deploy panko. The default deployment for panko is ocata. Change-Id: I01f447fe0170be64e318885e307b013e30fd4762 Story: 2005021 Task: 29500 Signed-off-by: Angie Wang <angie.wang@windriver.com>
44 lines
993 B
Smarty
44 lines
993 B
Smarty
#!/bin/bash
|
|
|
|
{{/*
|
|
Copyright 2019 Wind River Systems, Inc.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
set -ex
|
|
|
|
COMMAND="${@:-start}"
|
|
|
|
function start () {
|
|
|
|
cp -a $(type -p panko-api) /var/www/cgi-bin/panko/
|
|
|
|
if [ -f /etc/apache2/envvars ]; then
|
|
# Loading Apache2 ENV variables
|
|
source /etc/apache2/envvars
|
|
fi
|
|
|
|
# Get rid of stale pid file if present.
|
|
rm -f /var/run/apache2/*.pid
|
|
|
|
# Start Apache2
|
|
exec apache2 -DFOREGROUND
|
|
}
|
|
|
|
function stop () {
|
|
apachectl -k graceful-stop
|
|
}
|
|
|
|
$COMMAND
|