From 23081bfdb77fd9785a62393d6fafc71c3e3fdd6f Mon Sep 17 00:00:00 2001 From: rosbeef andino Date: Fri, 15 Apr 2022 08:38:55 -0400 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 2f6ebdd..cb1e1ae 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -53,14 +53,15 @@ ynh_jniwrapper_armhf () mvn package popd + # rm official jniwrapper to copy + original_jniwrapper=$(ls $final_path/jitsi-videobridge/lib/jniwrapper-native-*.jar + ynh_secure_remove --file="$original_jniwrapper" + mv "$tempdir/jitsi-sctp/jniwrapper/native/target/jniwrapper-native-1.0-SNAPSHOT.jar" "$final_path/jitsi-videobridge/lib/" chmod 640 "$final_path/jitsi-videobridge/lib/jniwrapper-native-1.0-SNAPSHOT.jar" chown -R $app:$app "$final_path/jitsi-videobridge/lib/jniwrapper-native-1.0-SNAPSHOT.jar" - # rm official jniwrapper to copy - ynh_secure_remove --file="$final_path/jitsi-videobridge/lib/jniwrapper-native-*.jar" - ynh_secure_remove --file="$tempdir" }