diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:07 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:49 -0300 |
commit | dc61252ae4dbfcfe5d75f40c86b5cf955242b788 (patch) | |
tree | 8db639550cb248216a10b6b9d5ec10ab6384c32f /src/etc/phpshellsessions/gitsync | |
parent | 9ed7f8f635c6b8d8074c2abe754aadb965aa47c4 (diff) | |
download | pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.zip pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.tar.gz |
Deprecate nanobsd platform and remove all conditionals that uses it
Diffstat (limited to 'src/etc/phpshellsessions/gitsync')
-rw-r--r-- | src/etc/phpshellsessions/gitsync | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/etc/phpshellsessions/gitsync b/src/etc/phpshellsessions/gitsync index 04f70c5..269add5 100644 --- a/src/etc/phpshellsessions/gitsync +++ b/src/etc/phpshellsessions/gitsync @@ -300,7 +300,7 @@ if (!$args[0] && !$upgrading) { } while (!empty($merge_repo)); } -if ($branch == "RESTORE" && $g['platform'] == $g['product_name']) { +if ($branch == "RESTORE") { if (!file_exists("/root/cvssync_backup.tgz")) { echo "Sorry, we could not find a previous CVSSync backup file.\n"; exit(); @@ -480,11 +480,7 @@ $tar_options = '-C ./src'; echo "===> Installing $qty_files_to_copy new files...\n"; -if ($g['platform'] == $g['product_name']) { - $command = "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO ; tar -cpf - {$tar_options} {$files_to_copy} | (cd / ; tar -Uxpf -)"; -} else { - $command = "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO ; tar -cpf - {$tar_options} {$files_to_copy} | (cd / ; tar -xpf -) 2>/dev/null"; -} +$command = "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO ; tar -cpf - {$tar_options} {$files_to_copy} | (cd / ; tar -Uxpf -)"; if (!empty($files_to_copy)) { if(isset($args["--show_command"])) { |