jiriks74 revised this gist . Go to revision
1 file changed, 2 insertions, 2 deletions
install.sh
| @@ -1,9 +1,9 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | 2 | if [ -d "custom_apps/news" ] && [ -d "apps/news" ]; then | |
| 3 | 3 | echo "Couldn't determine News folder as it present both in." | |
| 4 | - | echo "`apps/news`" | |
| 4 | + | echo "'apps/news'" | |
| 5 | 5 | echo "and in" | |
| 6 | - | echo "`custom_apps/news`" | |
| 6 | + | echo "'custom_apps/news'" | |
| 7 | 7 | exit 1 | |
| 8 | 8 | elif [ -d "custom_apps/news" ]; then | |
| 9 | 9 | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -o custom_apps/news/css/custom.css | |
jiriks74 revised this gist . Go to revision
1 file changed, 7 insertions, 2 deletions
install.sh
| @@ -1,6 +1,11 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | - | ||
| 3 | - | if [ -d "custom_apps/news" ]; then | |
| 2 | + | if [ -d "custom_apps/news" ] && [ -d "apps/news" ]; then | |
| 3 | + | echo "Couldn't determine News folder as it present both in." | |
| 4 | + | echo "`apps/news`" | |
| 5 | + | echo "and in" | |
| 6 | + | echo "`custom_apps/news`" | |
| 7 | + | exit 1 | |
| 8 | + | elif [ -d "custom_apps/news" ]; then | |
| 4 | 9 | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -o custom_apps/news/css/custom.css | |
| 5 | 10 | elif [ -d "apps/news" ]; then | |
| 6 | 11 | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -o apps/news/css/custom.css | |
jiriks74 revised this gist . Go to revision
2 files changed, 4 insertions, 4 deletions
README.md
| @@ -12,7 +12,7 @@ If you're not confortable running shell scripts from web find the `news` directo | |||
| 12 | 12 | go to the `css` directory and get the `custom.css` file: | |
| 13 | 13 | ||
| 14 | 14 | ```bash | |
| 15 | - | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O custom.css | |
| 15 | + | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -o custom.css | |
| 16 | 16 | ``` | |
| 17 | 17 | ||
| 18 | 18 | The directory should look like this afterwards: | |
install.sh
| @@ -1,14 +1,14 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | 2 | ||
| 3 | 3 | if [ -d "custom_apps/news" ]; then | |
| 4 | - | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O custom_apps/news/css/custom.css | |
| 4 | + | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -o custom_apps/news/css/custom.css | |
| 5 | 5 | elif [ -d "apps/news" ]; then | |
| 6 | - | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O apps/news/css/custom.css | |
| 6 | + | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -o apps/news/css/custom.css | |
| 7 | 7 | else | |
| 8 | 8 | echo "Couldn't determine News folder." | |
| 9 | 9 | echo "To get the file manually find the news/css folder and run" | |
| 10 | 10 | echo | |
| 11 | - | echo 'curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O custom.css' | |
| 11 | + | echo 'curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -o custom.css' | |
| 12 | 12 | echo | |
| 13 | 13 | exit 1 | |
| 14 | 14 | fi | |
jiriks74 revised this gist . Go to revision
1 file changed, 3 insertions, 1 deletion
install.sh
| @@ -1,7 +1,9 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | 2 | ||
| 3 | - | if [ -d "custom_apps/news" ] && [ -d "apps/news" ]; then | |
| 3 | + | if [ -d "custom_apps/news" ]; then | |
| 4 | 4 | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O custom_apps/news/css/custom.css | |
| 5 | + | elif [ -d "apps/news" ]; then | |
| 6 | + | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O apps/news/css/custom.css | |
| 5 | 7 | else | |
| 6 | 8 | echo "Couldn't determine News folder." | |
| 7 | 9 | echo "To get the file manually find the news/css folder and run" | |
jiriks74 revised this gist . Go to revision
2 files changed, 35 insertions
README.md(file created)
| @@ -0,0 +1,23 @@ | |||
| 1 | + | This file has to be put into the css` directory of the News app. | |
| 2 | + | ||
| 3 | + | To get this file easily go to the Nextcloud directory and run the following command: | |
| 4 | + | ||
| 5 | + | - Make sure that the user has sufficent rights to write to the news app's css directory | |
| 6 | + | ||
| 7 | + | ```bash | |
| 8 | + | curl -sSL https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/install.sh | bash | |
| 9 | + | ``` | |
| 10 | + | ||
| 11 | + | If you're not confortable running shell scripts from web find the `news` directory yourself, | |
| 12 | + | go to the `css` directory and get the `custom.css` file: | |
| 13 | + | ||
| 14 | + | ```bash | |
| 15 | + | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O custom.css | |
| 16 | + | ``` | |
| 17 | + | ||
| 18 | + | The directory should look like this afterwards: | |
| 19 | + | ||
| 20 | + | ```bash | |
| 21 | + | nextcloud/custom_apps# ls news/css/ | |
| 22 | + | admin.css app.css content.css custom.css explore.css mobile.css navigation.css settings.css shortcuts.css | |
| 23 | + | ``` | |
install.sh(file created)
| @@ -0,0 +1,12 @@ | |||
| 1 | + | #!/bin/sh | |
| 2 | + | ||
| 3 | + | if [ -d "custom_apps/news" ] && [ -d "apps/news" ]; then | |
| 4 | + | curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O custom_apps/news/css/custom.css | |
| 5 | + | else | |
| 6 | + | echo "Couldn't determine News folder." | |
| 7 | + | echo "To get the file manually find the news/css folder and run" | |
| 8 | + | echo | |
| 9 | + | echo 'curl "https://opengist.stefka.eu/jiriks74/nextcloud-news-fix/raw/HEAD/custom.css" -O custom.css' | |
| 10 | + | echo | |
| 11 | + | exit 1 | |
| 12 | + | fi | |
jiriks74 revised this gist . Go to revision
1 file changed, 3 insertions
custom.css(file created)
Diff is too large to be shown