mirror of
https://github.com/YunoHost-Apps/lxd_ynh.git
synced 2024-09-03 19:45:53 +02:00
remove lxd-p2c, add lxd-migrate & lxd-user
This commit is contained in:
parent
53fcfa7108
commit
efb7a823b7
5 changed files with 13 additions and 5 deletions
|
@ -56,7 +56,8 @@ ynh_backup --src_path="/usr/local/bin/lxc-to-lxd"
|
|||
ynh_backup --src_path="/usr/local/bin/lxd"
|
||||
ynh_backup --src_path="/usr/local/bin/lxd-agent"
|
||||
ynh_backup --src_path="/usr/local/bin/lxd-benchmark"
|
||||
ynh_backup --src_path="/usr/local/bin/lxd-p2c"
|
||||
ynh_backup --src_path="/usr/local/bin/lxd-migrate"
|
||||
ynh_backup --src_path="/usr/local/bin/lxd-user"
|
||||
ynh_backup --src_path="/etc/bash_completion.d/lxd-client"
|
||||
|
||||
ynh_backup --src_path="/etc/dnsmasq.d/lxd"
|
||||
|
|
|
@ -78,7 +78,7 @@ ynh_exec_warn_less make
|
|||
mkdir -p /usr/local/lib/$app
|
||||
mkdir -p /var/log/$app
|
||||
cp -a ${GOPATH}/{raft,dqlite}/.libs/lib*.so* /usr/local/lib/$app/
|
||||
cp ${GOPATH}/bin/{fuidshift,lxc,lxc-to-lxd,lxd,lxd-agent,lxd-benchmark,lxd-p2c} /usr/local/bin
|
||||
cp ${GOPATH}/bin/{fuidshift,lxc,lxc-to-lxd,lxd,lxd-agent,lxd-benchmark,lxd-migrate,lxd-user} /usr/local/bin
|
||||
cp ${lxd_tmp}/scripts/bash/lxd-client /etc/bash_completion.d/
|
||||
popd
|
||||
|
||||
|
|
|
@ -78,7 +78,8 @@ ynh_secure_remove --file="/usr/local/bin/lxc-to-lxd"
|
|||
ynh_secure_remove --file="/usr/local/bin/lxd"
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-agent"
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-benchmark"
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-p2c"
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-migrate"
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-user"
|
||||
ynh_secure_remove --file="/etc/bash_completion.d/lxd-client"
|
||||
|
||||
sed -i "/# Added by lxd$/{N;/root:100000:65536/d}" /etc/sub{u,g}id
|
||||
|
|
|
@ -78,7 +78,8 @@ ynh_restore_file --origin_path="/usr/local/bin/lxc-to-lxd"
|
|||
ynh_restore_file --origin_path="/usr/local/bin/lxd"
|
||||
ynh_restore_file --origin_path="/usr/local/bin/lxd-agent"
|
||||
ynh_restore_file --origin_path="/usr/local/bin/lxd-benchmark"
|
||||
ynh_restore_file --origin_path="/usr/local/bin/lxd-p2c"
|
||||
ynh_restore_file --origin_path="/usr/local/bin/lxd-migrate"
|
||||
ynh_restore_file --origin_path="/usr/local/bin/lxd-user"
|
||||
ynh_restore_file --origin_path="/etc/bash_completion.d/lxd-client"
|
||||
|
||||
ynh_restore_file --origin_path="/etc/dnsmasq.d/lxd"
|
||||
|
|
|
@ -23,6 +23,11 @@ ynh_script_progression --message="Ensuring downward compatibility..."
|
|||
|
||||
sed -i "/root:1000000:65536 # Added by lxd#/d" /etc/sub{u,g}id
|
||||
|
||||
# Remove old file
|
||||
if [ -f "/usr/local/bin/lxd-p2c" ]; then
|
||||
ynh_secure_remove --file="/usr/local/bin/lxd-p2c"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
@ -96,7 +101,7 @@ ynh_exec_warn_less make
|
|||
mkdir -p /usr/local/lib/$app
|
||||
mkdir -p /var/log/$app
|
||||
cp -a ${GOPATH}/{raft,dqlite}/.libs/lib*.so* /usr/local/lib/$app/
|
||||
cp ${GOPATH}/bin/{fuidshift,lxc,lxc-to-lxd,lxd,lxd-agent,lxd-benchmark,lxd-p2c} /usr/local/bin
|
||||
cp ${GOPATH}/bin/{fuidshift,lxc,lxc-to-lxd,lxd,lxd-agent,lxd-benchmark,lxd-migrate,lxd-user} /usr/local/bin
|
||||
cp ${lxd_tmp}/scripts/bash/lxd-client /etc/bash_completion.d/
|
||||
popd
|
||||
|
||||
|
|
Loading…
Reference in a new issue