Menu

#961 [PATCH] don't ignore buildroot(head) when do chmod apache config

2.0.3
closed
nobody
Setup/Packaging
Medium
2.0.2
defect
2015-01-20
2014-07-14
No
+ cd itop-itsm-2.0.3
+ export _ITOP_NAME_=itop-itsm
+ _ITOP_NAME_=itop-itsm
+ export _ITOP_SYSCONFDIR_=/etc
+ _ITOP_SYSCONFDIR_=/etc
+ export _ITOP_WEBCONFDIR_=/etc/httpd/
+ _ITOP_WEBCONFDIR_=/etc/httpd/
+ export _ITOP_VARDIR_=/var
+ _ITOP_VARDIR_=/var
+ export PREFIX=/usr
+ PREFIX=/usr
+ export HEAD=/builddir/build/BUILDROOT/itop-itsm-2.0.3-0.beta.el7.noarch
+ HEAD=/builddir/build/BUILDROOT/itop-itsm-2.0.3-0.beta.el7.noarch
+ chmod 755 ./web/setup/install/install.sh
+ ./web/setup/install/install.sh
itop-itsm will be installed under /builddir/build/BUILDROOT/itop-itsm-2.0.3-0.beta.el7.noarch/usr/share/itop-itsm
Creating target directories ...
Copying files ...
Creating symlinks...
Creating /builddir/build/BUILDROOT/itop-itsm-2.0.3-0.beta.el7.noarch/etc/httpd//conf.d and /builddir/build/BUILDROOT/itop-itsm-2.0.3-0.beta.el7.noarch/etc/itop-itsm/../cron.d directories
chmod: cannot access '/etc/httpd//conf.d/itop-itsm.conf': No such file or directory
diff -uNr src.orig/web/setup/install/install.sh src/web/setup/install/install.sh
--- src.orig/web/setup/install/install.sh   2014-06-13 11:50:42.000000000 +0400
+++ src/web/setup/install/install.sh    2014-07-14 22:23:48.684652917 +0400
@@ -94,6 +94,6 @@
 # Substitute variables for templates
 sed -e "s~_ITOP_NAME_~$_ITOP_NAME_~g" -e "s~_ITOP_SYSCONFDIR_~$subconf~g" -e "s~_ITOP_DATADIR_~$sublocal/share~g" -e "s~_ITOP_LOGDIR_~$subvar/log~g" ./web/setup/install/apache.conf.tpl > $webconf/conf.d/$_ITOP_NAME_.conf
 sed -e "s~_ITOP_NAME_~$_ITOP_NAME_~g" -e "s~_ITOP_SYSCONFDIR_~$subconf~g" -e "s~_ITOP_DATADIR_~$sublocal/share~g" -e "s~_ITOP_LOGDIR_~$subvar/log~g" ./web/setup/install/cron.tpl > $conf/../cron.d/$_ITOP_NAME_
-chmod 644 $_ITOP_WEBCONFDIR_/conf.d/$_ITOP_NAME_.conf $conf/../cron.d/$_ITOP_NAME_
+chmod 644 $webconf/conf.d/$_ITOP_NAME_.conf $conf/../cron.d/$_ITOP_NAME_

 exit 0

Discussion

  • Denis

    Denis - 2014-07-15
    • status: new --> closed
     

Log in to post a comment.