File: pkgos-fix-config-default

package info (click to toggle)
openstack-pkg-tools 139
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 940 kB
  • sloc: sh: 4,216; makefile: 31
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 $@