mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
18 lines
539 B
Bash
18 lines
539 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
DESTINATION="include/sanity_config.php"
|
||
|
|
||
|
echo "<?php # This file has been generated at: " `date` > $DESTINATION
|
||
|
|
||
|
echo -n "define('GENERATED_CONFIG_CHECK', " >> $DESTINATION
|
||
|
grep CONFIG_VERSION config.php-dist | awk -F ' |)' '{ print $2 }' | xargs echo -n >> $DESTINATION
|
||
|
echo ");" >> $DESTINATION
|
||
|
|
||
|
echo -n "\$requred_defines = array( " >> $DESTINATION
|
||
|
|
||
|
grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | grep -v DB_PORT | xargs echo -n | sed -e s/,$// -e s/*/\'/g >> $DESTINATION
|
||
|
|
||
|
echo "); ?>" >> $DESTINATION
|
||
|
|
||
|
|