Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pgajdos:magick-no-ua
ImageMagick
imagick-set-policy.in
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File imagick-set-policy.in of Package ImageMagick
sysconf_dir='@SYSCONF_DIR@' config_rel_dir='@CONFIG_REL_DIR@' policy_dir='@POLICY_DIR@' policy_link="$sysconf_dir/$config_rel_dir/policy.xml" policy="$1" if [ -n "$policy" ]; then policies="$policy" echo "Warning: setting policy to $policy temporarily for testing purposes only," echo " it will not survive next ImageMagick package install; for permanent" echo " setting install wanted policy package only or consider MAGICK_CONFIGURE_PATH" echo " if you need different ImageMagick instaces running under different policies" else policies='@POLICIES@' fi for policy in $policies; do if [ -f $policy_dir/$policy/policy.xml ]; then # safest policy found if [ ! -e $policy_link -o -L $policy_link ]; then # in case policy.xml is not a link, do not overwrite it echo "Using '$policy' policy." ln -sf $policy_dir/$policy/policy.xml $policy_link fi exit 0 fi done echo "No (such) policy found." exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor