mirror of
https://github.com/YunoHost-Apps/lxd_ynh.git
synced 2024-09-03 19:45:53 +02:00
fix subuid and subgid
This commit is contained in:
parent
cb39602175
commit
07d0fb31a6
4 changed files with 9 additions and 4 deletions
|
@ -126,7 +126,8 @@ ynh_store_file_checksum --file="/etc/ld.so.conf.d/$app.conf"
|
|||
|
||||
ldconfig
|
||||
|
||||
echo "root:1000000:65536 # Added by lxd#" | tee -a /etc/subuid /etc/subgid
|
||||
echo "# Added by lxd
|
||||
root:100000:65536" | tee -a /etc/subuid /etc/subgid
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -77,7 +77,7 @@ ynh_secure_remove --file="/usr/local/bin/lxd"
|
|||
ynh_secure_remove --file="/usr/local/bin/lxc-to-lxd"
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-p2c"
|
||||
|
||||
sed -i "/root:1000000:65536 # Added by lxd#/d" /etc/sub{uid,gid}
|
||||
sed -i "/# Added by lxd$/{N;/root:100000:65536/d}" /etc/sub{u,g}id
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
|
@ -92,7 +92,8 @@ ynh_restore_file --origin_path="/etc/ld.so.conf.d/$app.conf"
|
|||
|
||||
ldconfig
|
||||
|
||||
echo "root:1000000:65536 # Added by lxd#" | tee -a /etc/subuid /etc/subgid
|
||||
echo "# Added by lxd
|
||||
root:100000:65536" | tee -a /etc/subuid /etc/subgid
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -21,6 +21,8 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||
|
||||
sed -i "/root:1000000:65536 # Added by lxd#/d" /etc/sub{u,g}id
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
@ -136,7 +138,8 @@ ynh_store_file_checksum --file="/etc/ld.so.conf.d/$app.conf"
|
|||
|
||||
ldconfig
|
||||
|
||||
echo "root:1000000:65536 # Added by lxd#" | tee -a /etc/subuid /etc/subgid
|
||||
echo "# Added by lxd
|
||||
root:100000:65536" | tee -a /etc/subuid /etc/subgid
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
Loading…
Reference in a new issue