Skip to contentSkip to conversation

nginx: use ln -rs

PATCH New Ross Burton 1 participant 1 message Nov 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nginx: use ln -rs

lnr is deprecated, use ln -rs directly instead.

---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -1
index 7637002f23..b99e29ef99 100644
@@ -94,7 +94,7 @@ do_install () {
             >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
     fi
     install -d ${D}${sysconfdir}/${BPN}
-    lnr ${D}${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run
+    ln -rs ${D}${localstatedir}/run/${BPN} ${D}${sysconfdir}/${BPN}/run
     install -d ${D}${NGINX_WWWDIR}
     mv ${D}${exec_prefix}/html ${D}${NGINX_WWWDIR}/
     chown ${NGINX_USER}:www-data -R ${D}${NGINX_WWWDIR}
Signature · 1 line
2.25.1