diff options
Diffstat (limited to 'tools/templates/core_pkg/repo/metadir/+INSTALL')
-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 \ |