diff --git a/Makefile b/Makefile index 6a860b8b..9c36355c 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,8 @@ PERL_SCRIPTS = \ sbin/ngcp-instances-validator \ sbin/ngcp-network \ sbin/ngcp-network-validator \ - sbin/ngcp-sync-constants \ - sbin/ngcp-sync-grants \ + sbin/ngcp-sync-db-creds \ + sbin/ngcp-sync-db-grants \ # EOL YAML_SCHEMAS = \ schemas/instances.yml \ @@ -32,8 +32,8 @@ man: asciidoctor -d manpage -b manpage docs/ngcpcfg.txt pod2man --section=8 sbin/ngcp-network > docs/ngcp-network.8 pod2man --section=8 sbin/ngcp-network-validator > docs/ngcp-network-validator.8 - pod2man --section=8 sbin/ngcp-sync-constants > docs/ngcp-sync-constants.8 - pod2man --section=8 sbin/ngcp-sync-grants > docs/ngcp-sync-grants.8 + pod2man --section=8 sbin/ngcp-sync-db-creds > docs/ngcp-sync-db-creds.8 + pod2man --section=8 sbin/ngcp-sync-db-grants > docs/ngcp-sync-db-grants.8 pod2man --section=3pm lib/NGCP/Template.pm > docs/NGCP::Template.3pm pod2man --section=3pm lib/NGCP/Template/Object.pm > docs/NGCP::Template::Object.3pm pod2man --section=3pm lib/NGCP/Template/Plugin/Utils.pm > docs/NGCP::Template::Plugin::Utils.3pm diff --git a/debian/ngcp-ngcpcfg.install b/debian/ngcp-ngcpcfg.install index 4aee149a..6939a21c 100644 --- a/debian/ngcp-ngcpcfg.install +++ b/debian/ngcp-ngcpcfg.install @@ -20,8 +20,8 @@ lib/set_* usr/lib/ngcp-ngcpcfg/ sbin/ngcp-instances-validator usr/sbin/ sbin/ngcp-network usr/sbin/ sbin/ngcp-network-validator usr/sbin/ -sbin/ngcp-sync-constants usr/sbin/ -sbin/ngcp-sync-grants usr/sbin/ +sbin/ngcp-sync-db-creds usr/sbin/ +sbin/ngcp-sync-db-grants usr/sbin/ sbin/ngcpcfg usr/sbin/ schemas/instances.yml usr/share/ngcp-ngcpcfg/schemas/ schemas/sites.yml usr/share/ngcp-ngcpcfg/schemas/ diff --git a/debian/ngcp-ngcpcfg.links b/debian/ngcp-ngcpcfg.links index d3505864..d94d1740 100644 --- a/debian/ngcp-ngcpcfg.links +++ b/debian/ngcp-ngcpcfg.links @@ -1,3 +1,7 @@ +usr/sbin/ngcp-sync-constants usr/sbin/ngcp-sync-db-creds +usr/sbin/ngcp-sync-grants usr/sbin/ngcp-sync-db-grants usr/sbin/ngcpcfg usr/sbin/ngcp-config usr/share/bash-completion/completions/ngcpcfg usr/share/bash-completion/completions/ngcp-config +usr/share/man/man8/ngcp-sync-constants.8.gz usr/share/man/man8/ngcp-sync-db-creds.8.gz +usr/share/man/man8/ngcp-sync-grants.8.gz usr/share/man/man8/ngcp-sync-db-grants.8.gz usr/share/man/man8/ngcpcfg.8.gz usr/share/man/man8/ngcp-config.8.gz diff --git a/debian/ngcp-ngcpcfg.manpages b/debian/ngcp-ngcpcfg.manpages index 78e83266..9f4b55a4 100644 --- a/debian/ngcp-ngcpcfg.manpages +++ b/debian/ngcp-ngcpcfg.manpages @@ -1,5 +1,5 @@ docs/ngcp-network-validator.8 docs/ngcp-network.8 -docs/ngcp-sync-constants.8 -docs/ngcp-sync-grants.8 +docs/ngcp-sync-db-creds.8 +docs/ngcp-sync-db-grants.8 docs/ngcpcfg.8 diff --git a/sbin/ngcp-sync-constants b/sbin/ngcp-sync-db-creds similarity index 98% rename from sbin/ngcp-sync-constants rename to sbin/ngcp-sync-db-creds index cd58e4cd..b3f5b617 100755 --- a/sbin/ngcp-sync-constants +++ b/sbin/ngcp-sync-db-creds @@ -241,7 +241,7 @@ SQL } } unless ($count) { - log_debug(sprintf "%s => does not exist in mysql, skipped (check grants.yml and run ngcp-sync-grants)", $user); + log_debug(sprintf "%s => does not exist in mysql, skipped (check grants.yml and run ngcp-sync-db-grants)", $user); } $sth_sel->finish; @@ -354,11 +354,11 @@ __END__ =head1 NAME -ngcp-sync-constants - synchronizes passwords from constants.yml with MySQL +ngcp-sync-db-creds - synchronizes passwords from constants.yml with MySQL =head1 SYNOPSIS -B [I...] +B [I...] =head1 DESCRIPTION diff --git a/sbin/ngcp-sync-grants b/sbin/ngcp-sync-db-grants similarity index 98% rename from sbin/ngcp-sync-grants rename to sbin/ngcp-sync-db-grants index 49f216ab..2fd18b6e 100755 --- a/sbin/ngcp-sync-grants +++ b/sbin/ngcp-sync-db-grants @@ -530,7 +530,7 @@ sub main { if ($recreate_user) { log_info(< [I...] +B [I...] =head1 DESCRIPTION diff --git a/scripts/commit b/scripts/commit index eb1b0d2c..f00bed84 100755 --- a/scripts/commit +++ b/scripts/commit @@ -92,10 +92,10 @@ log_debug "${SCRIPTS}/etckeeper" if [ -z "${NO_DB_SYNC:-}" ] ; then log_info "Synchronizing MySQL grants/credentials" - ngcp-sync-grants | sed "s/^/$timestamp_replacementchars/" - ngcp-sync-constants | sed "s/^/$timestamp_replacementchars/" + ngcp-sync-db-grants | sed "s/^/$timestamp_replacementchars/" + ngcp-sync-db-creds | sed "s/^/$timestamp_replacementchars/" else - log_debug "no-db-sync: skipping 'ngcp-sync-grants' + 'ngcp-sync-constants'" + log_debug "no-db-sync: skipping 'ngcp-sync-db-grants' + 'ngcp-sync-db-creds'" fi ## END OF FILE #################################################################