diff options
author | Renato Botelho <renato@netgate.com> | 2016-04-06 07:11:30 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-04-06 07:21:55 -0300 |
commit | 9c34b7aef19d61f06e8bdceb66575abbce754764 (patch) | |
tree | 265242c18f4d7b4b5c4a1a6150a5be20c446cc85 | |
parent | 2d05e9c634b96b38156b73e79aa9cfcc2dd25b4c (diff) | |
download | pfsense-9c34b7aef19d61f06e8bdceb66575abbce754764.zip pfsense-9c34b7aef19d61f06e8bdceb66575abbce754764.tar.gz |
Make sure symlink is created on post-install
(cherry picked from commit f5edca6c481c72c063c7390afdececd54da10a6e)
-rw-r--r-- | tools/templates/core_pkg/repo/metadir/+INSTALL | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/templates/core_pkg/repo/metadir/+INSTALL b/tools/templates/core_pkg/repo/metadir/+INSTALL index 7c47e52..8e67eca 100644 --- a/tools/templates/core_pkg/repo/metadir/+INSTALL +++ b/tools/templates/core_pkg/repo/metadir/+INSTALL @@ -9,7 +9,10 @@ if [ ! -f /usr/local/share/%%PRODUCT_NAME%%/pkg/repos/%%PRODUCT_NAME%%-repo.conf exit 1 fi -if [ ! -e /usr/local/etc/pkg/repos/%%PRODUCT_NAME%%.conf ]; then +if [ ! -L /usr/local/etc/pkg/repos/%%PRODUCT_NAME%%.conf ]; then + if [ -f /usr/local/etc/pkg/repos/%%PRODUCT_NAME%%.conf ]; then + rm -f /usr/local/etc/pkg/repos/%%PRODUCT_NAME%%.conf + fi mkdir -p /usr/local/etc/pkg/repos ln -sf \ /usr/local/share/%%PRODUCT_NAME%%/pkg/repos/%%PRODUCT_NAME%%-repo.conf \ |