0
게시자 스크립트를 사용하여 아파치 웹 사이트의 디렉터리를 패커를 사용하는 불량 상자로 복사하려고하지만 어떤 디렉터리에 아파치의 모든 파일이 들어있는 디렉터리를 넣어야하는지 확실하지 않습니다. 이 오류로 실행 계속 : 여기 아파치 폴더가 어떤 곳으로 옮겨 져서 얼룩짐 상자로 옮겨야합니까?
ubuntu-vanilla-16011-server: cp -r bootstrap-website/ ~/var/www/html/
ubuntu-vanilla-16011-server: cp: cannot stat 'bootstrap-website/': No such file or directory
==> ubuntu-vanilla-16011-server: Unregistering and deleting virtual machine...
==> ubuntu-vanilla-16011-server: Deleting output directory...
Build 'ubuntu-vanilla-16011-server' errored: Script exited with non-zero exit status: 1
==> Some builds didn't complete successfully and had errors:
--> ubuntu-vanilla-16011-server: Script exited with non-zero exit status: 1
==> Builds finished but no artifacts were created.
내 포스트 스크립트를 설치한다 :
#!/bin/bash
set -e
set -v
# http://superuser.com/questions/196848/how-do-i-create-an-administrator-user-on-ubuntu
# http://unix.stackexchange.com/questions/1416/redirecting-stdout-to-a-file-you-dont-have-write-permission-on
# This line assumes the user you created in the preseed directory is vagrant
echo "vagrant ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/init-users
sudo cat /etc/sudoers.d/init-users
# Installing vagrant keys
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub'
sudo mkdir -p /home/vagrant/.ssh
sudo chown -R vagrant:vagrant /home/vagrant/.ssh
cat ./vagrant.pub >> /home/vagrant/.ssh/authorized_keys
apt-get update
apt-get install -y apache2
apt-get install -y php
if ! [ -L /var/www ]; then
rm -rf /var/www
ln -fs /vagrant /var/www
fi
cp -r bootstrap-website/ ~/var/www/html/
어떤 도움을 주시면 감사하겠습니다. 감사합니다.
json 파일과 같은 디렉토리에 상자에 업로드하려는 디렉토리가 너무 많으므로 고맙습니다. –
네, 그래야합니다. –