| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,6 +24,7 @@ case "$1" in | |||
| 24 | 24 | ||
| 25 | 25 | # Linking usage server db.properties to management server db.properties | |
| 26 | 26 | if [ -f "/etc/cloudstack/management/db.properties" ]; then | |
| 27 | + echo Replacing usage server's db.properties with a link to the management server's db.properties | ||
| 27 | 28 | rm -f /etc/cloudstack/usage/db.properties | |
| 28 | 29 | ln -s /etc/cloudstack/management/db.properties /etc/cloudstack/usage/db.properties | |
| 29 | 30 | fi | |
@@ -35,6 +36,7 @@ case "$1" in | |||
| 35 | 36 | ||
| 36 | 37 | # Replacing key with management server key | |
| 37 | 38 | if [ -f "/etc/cloudstack/management/key" ]; then | |
| 39 | + echo Replacing usage server's key with a link to the management server's key | ||
| 38 | 40 | rm -f /etc/cloudstack/usage/key | |
| 39 | 41 | ln -s /etc/cloudstack/management/key /etc/cloudstack/usage/key | |
| 40 | 42 | fi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -465,14 +465,14 @@ fi | |||
| 465 | 465 | ||
| 466 | 466 | %post usage | |
| 467 | 467 | if [ -f "%{_sysconfdir}/%{name}/management/db.properties" ]; then | |
| 468 | - echo Replacing db.properties with management server db.properties | ||
| 468 | + echo Replacing usage server's db.properties with a link to the management server's db.properties | ||
| 469 | 469 | rm -f %{_sysconfdir}/%{name}/usage/db.properties | |
| 470 | 470 | ln -s %{_sysconfdir}/%{name}/management/db.properties %{_sysconfdir}/%{name}/usage/db.properties | |
| 471 | 471 | /usr/bin/systemctl enable cloudstack-usage > /dev/null 2>&1 || true | |
| 472 | 472 | fi | |
| 473 | 473 | ||
| 474 | 474 | if [ -f "%{_sysconfdir}/%{name}/management/key" ]; then | |
| 475 | - echo Replacing key with management server key | ||
| 475 | + echo Replacing usage server's key with a link to the management server's key | ||
| 476 | 476 | rm -f %{_sysconfdir}/%{name}/usage/key | |
| 477 | 477 | ln -s %{_sysconfdir}/%{name}/management/key %{_sysconfdir}/%{name}/usage/key | |
| 478 | 478 | fi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -462,14 +462,14 @@ fi | |||
| 462 | 462 | ||
| 463 | 463 | %post usage | |
| 464 | 464 | if [ -f "%{_sysconfdir}/%{name}/management/db.properties" ]; then | |
| 465 | - echo Replacing db.properties with management server db.properties | ||
| 465 | + echo Replacing usage server's db.properties with a link to the management server's db.properties | ||
| 466 | 466 | rm -f %{_sysconfdir}/%{name}/usage/db.properties | |
| 467 | 467 | ln -s %{_sysconfdir}/%{name}/management/db.properties %{_sysconfdir}/%{name}/usage/db.properties | |
| 468 | 468 | /usr/bin/systemctl enable cloudstack-usage > /dev/null 2>&1 || true | |
| 469 | 469 | fi | |
| 470 | 470 | ||
| 471 | 471 | if [ -f "%{_sysconfdir}/%{name}/management/key" ]; then | |
| 472 | - echo Replacing key with management server key | ||
| 472 | + echo Replacing usage server's key with a link to the management server's key | ||
| 473 | 473 | rm -f %{_sysconfdir}/%{name}/usage/key | |
| 474 | 474 | ln -s %{_sysconfdir}/%{name}/management/key %{_sysconfdir}/%{name}/usage/key | |
| 475 | 475 | fi | |
| Back | FazBrowse Home | New Git URL |
0 commit comments