|
@@ -272,6 +272,20 @@ function get_apps_installed_names {
|
272
|
272
|
done
|
273
|
273
|
}
|
274
|
274
|
|
|
275
|
+function app_not_on_onion_only {
|
|
276
|
+ app_name="$1"
|
|
277
|
+
|
|
278
|
+ read_config_param ONION_ONLY
|
|
279
|
+
|
|
280
|
+ if [[ "$ONION_ONLY" != 'no' ]]; then
|
|
281
|
+ if grep -q "NOT_ON_ONION=1" "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"; then
|
|
282
|
+ echo "0"
|
|
283
|
+ return
|
|
284
|
+ fi
|
|
285
|
+ fi
|
|
286
|
+ echo "1"
|
|
287
|
+}
|
|
288
|
+
|
275
|
289
|
# detects what apps are available
|
276
|
290
|
function detect_apps {
|
277
|
291
|
FILES="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*"
|
|
@@ -299,20 +313,6 @@ function detect_apps {
|
299
|
313
|
get_apps_installed_names
|
300
|
314
|
}
|
301
|
315
|
|
302
|
|
-function app_not_on_onion_only {
|
303
|
|
- app_name="$1"
|
304
|
|
-
|
305
|
|
- read_config_param ONION_ONLY
|
306
|
|
-
|
307
|
|
- if [[ "$ONION_ONLY" != 'no' ]]; then
|
308
|
|
- if grep -q "NOT_ON_ONION=1" "/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"; then
|
309
|
|
- echo "0"
|
310
|
|
- return
|
311
|
|
- fi
|
312
|
|
- fi
|
313
|
|
- echo "1"
|
314
|
|
-}
|
315
|
|
-
|
316
|
316
|
# detects what apps are available and can be installed
|
317
|
317
|
# If the variants list within an app script is an empty string then
|
318
|
318
|
# it is considered to be too experimental to be installable
|