Skip to main content

Restore Default File/Folder Structure

This script is unofficial and not supported by Ultra.cc staff.

This script will restore the mandatory files and directories for your Ultra.cc service to the default structure,structure and re-install your nginx webserver. This script will not overwrite any media files or application configuration files otherexcept thanfor resetting yourany webserver (files you may have changedupdated in ~/.apps/nginx.

This script should be used if you have accidentally deleted the default files and directories required for your service to run.

Listed below are all the files and directories that will be restored.

  • ~/.bashrc
  • ~/.profile
  • ~/bin
  • ~/.apps
  • ~/downloads
  • ~/media
  • ~/www

Additionally, a symbolic link will be created between ~/downloads and ~/www

Usage

  • Connect to your Ultra.cc slot via SSH, see guide here
  • Once connected, execute the following command:
bash <(wget -qO- https://scripts.usbx.me/util/Ultra_restore/main.sh)
  • You should see Restoration process has been started...
  • Then you should see Service has been restored to default
  • Done!