diff options
Diffstat (limited to 'www/seahub/files/patch-scripts_upgrade_regenerate__secret__key.sh')
-rw-r--r-- | www/seahub/files/patch-scripts_upgrade_regenerate__secret__key.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/www/seahub/files/patch-scripts_upgrade_regenerate__secret__key.sh b/www/seahub/files/patch-scripts_upgrade_regenerate__secret__key.sh new file mode 100644 index 000000000000..f8c93140c2ff --- /dev/null +++ b/www/seahub/files/patch-scripts_upgrade_regenerate__secret__key.sh @@ -0,0 +1,10 @@ +--- scripts/upgrade/regenerate_secret_key.sh.orig 2016-10-21 22:12:15 UTC ++++ scripts/upgrade/regenerate_secret_key.sh +@@ -10,4 +10,6 @@ seahub_settings_py=${TOPDIR}/seahub_sett + + line="SECRET_KEY = \"$(python $seahub_secret_keygen)\"" + +-sed -i -e "/SECRET_KEY/c\\$line" $seahub_settings_py ++sed -i.bak -e "/SECRET_KEY/c\\ ++$line ++" $seahub_settings_py |