mirror of
https://github.com/YunoHost-Apps/lxd_ynh.git
synced 2024-09-03 19:45:53 +02:00
add bash completion
This commit is contained in:
parent
07d0fb31a6
commit
d474285da1
5 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,7 @@ ynh_backup --src_path="/usr/local/bin/lxc"
|
|||
ynh_backup --src_path="/usr/local/bin/lxd"
|
||||
ynh_backup --src_path="/usr/local/bin/lxc-to-lxd"
|
||||
ynh_backup --src_path="/usr/local/bin/lxd-p2c"
|
||||
ynh_backup --src_path="/etc/bash_completion.d/lxd-client"
|
||||
|
||||
ynh_backup --src_path="/etc/dnsmasq.d/lxd"
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ mkdir -p /usr/local/lib/$app
|
|||
mkdir -p /var/log/$app
|
||||
cp -a ${GOPATH}/deps/{raft,dqlite}/.libs/lib*.so* /usr/local/lib/$app/
|
||||
cp ${GOPATH}/bin/{lxc,lxd,lxc-to-lxd,lxd-p2c} /usr/local/bin
|
||||
cp ${lxd_tmp}/scripts/bash/lxd-client /etc/bash_completion.d/
|
||||
popd
|
||||
|
||||
ynh_secure_remove --file="$go_tmp"
|
||||
|
|
|
@ -76,6 +76,7 @@ ynh_secure_remove --file="/usr/local/bin/lxc"
|
|||
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"
|
||||
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
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ ynh_restore_file --origin_path="/usr/local/bin/lxc"
|
|||
ynh_restore_file --origin_path="/usr/local/bin/lxd"
|
||||
ynh_restore_file --origin_path="/usr/local/bin/lxc-to-lxd"
|
||||
ynh_restore_file --origin_path="/usr/local/bin/lxd-p2c"
|
||||
ynh_restore_file --origin_path="/etc/bash_completion.d/lxd-client"
|
||||
|
||||
ynh_restore_file --origin_path="/etc/dnsmasq.d/lxd"
|
||||
|
||||
|
|
|
@ -94,6 +94,7 @@ mkdir -p /usr/local/lib/$app
|
|||
mkdir -p /var/log/$app
|
||||
cp -a ${GOPATH}/deps/{raft,dqlite}/.libs/lib*.so* /usr/local/lib/$app/
|
||||
cp ${GOPATH}/bin/{lxc,lxd,lxc-to-lxd,lxd-p2c} /usr/local/bin
|
||||
cp ${lxd_tmp}/scripts/bash/lxd-client /etc/bash_completion.d/
|
||||
popd
|
||||
|
||||
ynh_secure_remove --file="$go_tmp"
|
||||
|
|
Loading…
Reference in a new issue