summarylogtreecommitdiffstats
path: root/astk-hg.install
diff options
context:
space:
mode:
Diffstat (limited to 'astk-hg.install')
-rw-r--r--astk-hg.install21
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