diff options
author | Michele Mocciola | 2015-06-13 12:38:15 +0200 |
---|---|---|
committer | Michele Mocciola | 2015-06-13 12:38:15 +0200 |
commit | e9892b4ecd810faa0753b5f2913a4346970b2d64 (patch) | |
tree | 232cd8b06cf262e4bd76c0ae39f871ed991302a7 /astk-hg.install | |
download | aur-e9892b4ecd810faa0753b5f2913a4346970b2d64.tar.gz |
Initial import
Diffstat (limited to 'astk-hg.install')
-rw-r--r-- | astk-hg.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/astk-hg.install b/astk-hg.install new file mode 100644 index 000000000000..ed4389457b46 --- /dev/null +++ b/astk-hg.install @@ -0,0 +1,21 @@ +post_install() { + SERVER_NAME=`/usr/bin/uname -n` + HOST_NAME=`/usr/bin/hostname -s` + if [ ${SERVER_NAME/${HOST_NAME}./} != ${SERVER_NAME} ] ; then + DOMAIN_NAME=${SERVER_NAME/${HOST_NAME}./} + fi + + sed -e "s|?NODE?|${HOST_NAME}|" \ + -i "/etc/codeaster/asrun" + + sed -e "s|?FULL_SERVER_NAME?|${SERVER_NAME}|" \ + -e "s|?SERVER_NAME?|${HOST_NAME}|" \ + -i "/etc/codeaster/astkrc/config_serveurs" + + sed -e "s|?DOMAIN_NAME?|${DOMAIN_NAME}|" \ + -i "/etc/codeaster/astkrc/prefs" +} + +post_upgrade() { + post_install +}
\ No newline at end of file |