Changeset 251


Ignore:
Timestamp:
Jun 25, 2018, 1:14:50 PM (6 years ago)
Author:
g7moreau
Message:
  • Try to push better owner and right on package
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nagios-velvice/make-package-debian

    r249 r251  
    1313# Set Version
    1414VELVICE_VERSION=$(grep 'version->declare' velvice.cgi | cut -f 2 -d "'") #'
    15 LOCAL_VERSION=1
     15LOCAL_VERSION=2
    1616
    1717# Create future tree
     
    2424cp velvice.cgi          ${tmp_folder}/usr/lib/cgi-bin/nagios3/
    2525cp velvice.sample.yml   ${tmp_folder}/etc/nagios3/
     26chmod ugo+rx         ${tmp_folder}/usr/lib/cgi-bin/nagios3/velvice.cgi
     27chmod -R a+rX,go-w   ${tmp_folder}/usr
     28chmod -R a+rX,go-w   ${tmp_folder}/etc
    2629
    2730# Data archive
    2831rm -f ${tmp_folder}/data.tar.gz
    29 (cd ${tmp_folder}; tar czf data.tar.gz ./usr ./etc)
     32(cd ${tmp_folder}; tar --owner root --group root czf data.tar.gz ./usr ./etc)
    3033
    3134# Control file
     
    4851# Control archive
    4952rm -f ${tmp_folder}/control.tar.gz
    50 (cd ${tmp_folder}; tar czf control.tar.gz control)
     53(cd ${tmp_folder}; tar --owner root --group root czf control.tar.gz control)
    5154
    5255# Format deb package
Note: See TracChangeset for help on using the changeset viewer.