Owncloud install script wiped out my entire system

I used the two scripts from the script guided install from this website
admin_manual/installation/manual_installation/script_guided_install.html

I first ran the instance.sh script, it worked fine. Then I ran the owncloud_prep.sh and it wiped my entire harddrive. (It’s as if it did an rm -rf /)

The only thing I changed in the instance.sh was the linkroot=‘/mnt/oc_data’

Thankfully it was not a production server

I answered the following questions:
Do you want to secure your .htaccess files post installing/upgrade (y/N)? N
Do you want to install a new instance (y/N)? Y
Do you want to upgrade an existing installation (y/N)? N
Use links for data and apps-external directories (Y/n)? Y
Do you want to chmod/chown these links (y/N)? Y
Please specify the tar file to extract with full path: /root/owncloud-complete-20230906.tar.bz2

I ran the owncloud_prep.sh after, it asked the same questions. When it was finished running the hard drive was completely wiped.

Hey,

i never used this script (as i generally don’t trust such “automated” scripts) but could it be possible that this modification is causing the issue?

Maybe you could also post the full link to the used script? In the most recent one i can only find a single rm -r $ocpath but no rm -rf but maybe an older script was used which had problems?

1 Like

This forum won’t allow links, but this is the link to the site where I got the two scripts. doc(dot)owncloud(dot)com /server/next/admin_manual/installation/manual_installation/script_guided_install.html

I also recently realized, that the instance.sh script calls the owncloud_prep.sh, so it probably isn’t necessary to run the owncloud_prep.sh. However, if someone like me should accidentally run the owncloud_prep.sh it should not do what it did.

Hey,

i’m able to post links:

I think this is the most recent version so using an outdated version is unlikely the problem.

Currently i can’t see that the documentation is telling the user to run the owncloud_prep.sh standalone.

If this problem was originating from calling the owncloud_prep.sh script then i think the ownCloud community can’t help that much with it :slightly_frowning_face: as the script seems to be provided by the ownCloud people.

I think it could require to open an issue at Issues · owncloud/docs-server · GitHub to let the ownCloud people to know about possible problems like this.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.