File: pkgos-fix-config-default

package info (click to toggle)
openstack-pkg-tools 54
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 392 kB
  • ctags: 59
  • sloc: sh: 3,143; makefile: 28
file content (14 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# -*- mode: shell-script -*-

set -e

. /usr/share/openstack-pkg-tools/pkgos_func

# $1 = config file path (example: /etc/nova/nova.conf)
# $2 = .ini file section (example: DEFAULT)
# $3 = directive name (example: sql_connection)
# $4 = only present in "set" mode: new value to replace in the .ini file

PKGOS_VERBOSE=yes
pkgos_inifile set $@