sysuser fix
This commit is contained in:
parent
38276d0cb0
commit
4c3804db8a
4
build.sh
4
build.sh
|
@ -66,7 +66,7 @@ Type=simple
|
|||
[Install]
|
||||
WantedBy=multi-user.target"
|
||||
|
||||
sysusers_file="u $target - \"$target daemon\" /var/lib/$target"
|
||||
sysusers_file="$target home=/var/lib/$target"
|
||||
|
||||
tmpfiles_file="# Override this file with a modified version in /etc/tmpfiles.d/
|
||||
d /var/lib/$target 0755 $target $target
|
||||
|
@ -115,6 +115,7 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
|||
deb_dir=$dir/debian
|
||||
mkdir -p $deb_dir
|
||||
echo $control_file | sed -E "s/REPLACE_ARCHITECTURE/$arch/g" > $deb_dir/control
|
||||
echo $sysusers_file > $deb_dir/$target.sysuser
|
||||
pkgdir=$deb_dir/$target
|
||||
|
||||
mkdir -p $pkgdir/usr/lib/systemd/system
|
||||
|
@ -135,7 +136,6 @@ for ((i = 1; i < ${#tarballs[@]}; i += 2)); do
|
|||
deb_pkg_dir=$pkgdir/DEBIAN
|
||||
mkdir -p $deb_pkg_dir
|
||||
echo $package_control_file | sed -E "s/REPLACE_ARCHITECTURE/$arch/g" > $deb_pkg_dir/control
|
||||
echo $sysusers_file > $deb_pkg_dir/sysusers
|
||||
|
||||
cd $dir
|
||||
dpkg-deb --build $target
|
||||
|
|
Loading…
Reference in a new issue