File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -193,13 +193,17 @@ variables:
193193
194194.rpm_script :
195195  script :
196+     #  temp
197+     - echo "%git_commit $CI_COMMIT_SHA" >> ${RPM_DIR}/.rpmmacros 
196198    - cp ${RPM_DIR}/.rpmmacros ${HOME} 
197199    - ci-build-pkg ${RPM_DIR} 
198200
199201.deb_script :
200202  script :
201203    - ./${CIDIR}/debian/convert-to-native-package.sh 
202204    - cp ${CIDIR}/debian/.devscripts ${HOME} 
205+     #  temp
206+     - make conf/git_commit_id 
203207    - quilt push 
204208    - ci-build-pkg ${DEB_DIR} 
205209  variables :
Original file line number Diff line number Diff line change @@ -260,3 +260,7 @@ html_install:
260260	cp -v --no-dereference $(SRC_HTML_PFAPPDIR_STATIC)/alt \
261261	    $(DESTDIR)$(HTML_PFAPPDIR_STATIC)
262262
263+ .PHONY : conf/git_commit_id
264+ conf/git_commit_id :
265+ 	echo  $$ CI_COMMIT_SHA >  $@ 
266+ 
Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ install: build
143143	install -d -m2770 $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/logs
144144	install -d -m2770 $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/var/redis_cache
145145	install -m0600 conf/redis_cache.conf.example $(CURDIR)/debian/packetfence-redis-cache$(PREFIX)/$(NAME)/conf/redis_cache.conf
146- 	echo $(C_ID) > $(CURDIR)/debian/packetfence$(PREFIX)/$(NAME)/conf/git_commit_id
147146
148147	# Portal javascript/css
149148	rm -f $(CURDIR)/debian/packetfence$(PREFIX)/$(NAME)/html/common/styles.css
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments