Skip to content

Commit

Permalink
cannot stat /etc/netplan/01-netcfg.yaml (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeorgg authored and enoch85 committed Dec 10, 2018
1 parent 0c33999 commit a0d37f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions nextcloud-startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,14 @@ You must have a working network connection to run this script.
You will now be provided with the option to set a static IP manually instead."

# Copy old interfaces file
msg_box "Copying old netplan.io config file file to:
/tmp/01-netcfg.yaml_backup"
check_command cp -v /etc/netplan/01-netcfg.yaml /tmp/01-netcfg.yaml_backup
# Copy old interfaces files
msg_box "Copying old netplan.io config files file to:
/tmp/netplan_io_backup/"
if [ -d /etc/netplan/ ]
then
mkdir -p /tmp/netplan_io_backup
check_command cp -vR /etc/netplan/* /tmp/netplan_io_backup/
fi

# Ask for IP address
cat << ENTERIP
Expand Down
12 changes: 8 additions & 4 deletions static/static_ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ debug_mode

clear

# Copy old interfaces file
msg_box "Copying old netplan.io config file file to:
# Copy old interfaces files
msg_box "Copying old netplan.io config files file to:
/tmp/01-netcfg.yaml_backup"
check_command cp -v /etc/netplan/01-netcfg.yaml /tmp/01-netcfg.yaml_backup
/tmp/netplan_io_backup/"
if [ -d /etc/netplan/ ]
then
mkdir -p /tmp/netplan_io_backup
check_command cp -vR /etc/netplan/* /tmp/netplan_io_backup/
fi

echo
while true
Expand Down

0 comments on commit a0d37f6

Please sign in to comment.