mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
aarch64 simplication
This commit is contained in:
parent
f16dce149c
commit
60ff7bb4a1
1 changed files with 4 additions and 4 deletions
|
@ -88,13 +88,13 @@ then # Si le conteneur existe déjà
|
|||
fi
|
||||
|
||||
echo -e "\e[1m> Création d'une machine debian $DISTRIB minimaliste.\e[0m" | tee -a "$LOG_BUILD_LXC"
|
||||
uname=$(uname -m)
|
||||
if [[ $uname =~ aarch64 ]]
|
||||
if [ "$(uname -m)" == "aarch64" ]
|
||||
then
|
||||
sudo lxc-create -n $LXC_NAME -t debian -- -r $DISTRIB --arch=arm64 >> "$LOG_BUILD_LXC" 2>&1
|
||||
arch_arg="--arch=arm64"
|
||||
else
|
||||
sudo lxc-create -n $LXC_NAME -t debian -- -r $DISTRIB >> "$LOG_BUILD_LXC" 2>&1
|
||||
arch_arg=""
|
||||
fi
|
||||
sudo lxc-create -n $LXC_NAME -t debian -- -r $DISTRIB $arch_arg >> "$LOG_BUILD_LXC" 2>&1
|
||||
|
||||
echo -e "\e[1m> Autoriser l'ip forwarding, pour router vers la machine virtuelle.\e[0m" | tee -a "$LOG_BUILD_LXC"
|
||||
echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/lxc_pchecker.conf >> "$LOG_BUILD_LXC" 2>&1
|
||||
|
|
Loading…
Add table
Reference in a new issue